public JsonResult Filter(WarningFilter filter) { var response = _warningService.Filter(filter); return(new JsonFactory().Success(response.Warnings, response.TotalRecords)); }