Get the name of the view from inside the view.
- by stacker
[HttpGet]
public ActionResult LogIn(string username)
{
if (username == null)
return View("404");
return View("LogInAdvanced");
}
Inside the view a want to get the view file name: LogInAdvanced or 404.