public void OnException(ExceptionContext filterContext)
        {
            using (var daError = new DataAccess.DataAccessObjects.ErrorLog())
                daError.LogError(filterContext.Exception, filterContext.HttpContext.Request.RawUrl);

            filterContext.ExceptionHandled = false;
        }
Esempio n. 2
0
 // GET: Error
 public ActionResult Index()
 {
     using (var daError = new DataAccess.DataAccessObjects.ErrorLog())
         return(View(daError.ListErrors().ToList()));
 }