public void OnException(ExceptionContext filterContext) { using (var daError = new DataAccess.DataAccessObjects.ErrorLog()) daError.LogError(filterContext.Exception, filterContext.HttpContext.Request.RawUrl); filterContext.ExceptionHandled = false; }
// GET: Error public ActionResult Index() { using (var daError = new DataAccess.DataAccessObjects.ErrorLog()) return(View(daError.ListErrors().ToList())); }