public ActionResult GetInstallationsReport([DataSourceRequest] DataSourceRequest request, int?userId, int?periodSelectionKind, int?typeId, bool?isactive) { ReportEnums.ePeriodSelectionKinds?kind = periodSelectionKind != null ? (ReportEnums.ePeriodSelectionKinds?)periodSelectionKind.ToPeriodSelectionKind() : null; var list = _reportServices.GetInstallationsReport(kind, userId, typeId, isactive).OrderByDescending(x => x.AddOn).ToArray(); return(Json(list.ToDataSourceResult(request), JsonRequestBehavior.AllowGet)); }