return view() based on condition mvc c# 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");
}