If you have created a controller like:
public class ProjectLoginController : Controller
{
/// <summary>
/// GET: /login
/// </summary>
/// <returns></returns>
[HttpGet]
[AllowAnonymous]
public ActionResult Login()
{
return View();
}
}
It will search for the login view in the ProjectLogin
or the Shared
folder.
Is it possible to tell MVC for this controller to search in the views folder Account
under Views
instead of doing:
return View("~/Views/Account/Login.cshtml");
or:
return View("../Account/Login");