public override void OnException(HttpActionExecutedContext context) { if (context == null) { return; } LoggaService.CreateLogFromApiException(context); }
void Application_Error(object sender, EventArgs e) { LoggaService.CreateLogFromContext(HttpContext.Current); }