how to return a view in mvc code example
Example 1: mvc return view from different controller
return View("~/Views/SomeThing/Index.cshtml");
return View("~/Views/SomeThing/Index.cshtml",model);
Example 2: return view mvc
public ActionResult SomeAction()
{
...
return RedirectToAction("SomeAction", "SomeController");
}
Example 3: asp net mvc 5 return view from another controller
Return RedirectToRoute("Stuff");