public ActionResult AccessDenied() { ErrorViewmodel error = new ErrorViewmodel() { NumberTitle = "403", Title = "Access denied", Description = "This page you are looking for does not exist." }; return(View(error)); }
public ActionResult InternalServer() { ErrorViewmodel error = new ErrorViewmodel() { NumberTitle = "500", Title = "Internal Server Error", Description = "We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing." }; return(View(error)); }
// GET: Error public ActionResult NotFound() { ErrorViewmodel error = new ErrorViewmodel() { NumberTitle = "404", Title = "Sorry but we couldn't find this page", Description = "This page you are looking for does not exist." }; return(View(error)); }