public ActionResult GetSystemLogs([DataSourceRequest] DataSourceRequest request, int periodSelectionKind, CommonEnums.LoggerObjectTypes?module = null, CommonEnums.eLogLevels?level = null, int?userId = null, long?sessionId = null, string ipAddress = null) { var kind = periodSelectionKind.ToPeriodSelectionKind(); var list = _reportServices.GetSystemLogs(kind, module, level, userId, sessionId, ipAddress); return(Json(list.ToDataSourceResult(request), JsonRequestBehavior.AllowGet)); }