public class PublicController : Controller { // GET: Public protected override void HandleUnknownAction(string actionName) { try { View(actionName).ExecuteResult(this.ControllerContext); } catch (Exception e) { Response.Write("PageNotFound"); } } }
ul> <li><a href="@Url.RouteUrl("Public", new { name = "History.cshtml" })">History</a></li>