public ActionResult GetStoresReport([DataSourceRequest] DataSourceRequest request, int?userId, int?sourceId, bool?isAffiliate) { var source = sourceId == null ? (CommonEnums.eRegistrationSources?)null : Utils.ParseEnum <CommonEnums.eRegistrationSources>(sourceId.ToString()); var list = _reportServices.GetStoresReport(userId, source, isAffiliate); return(Json(list.ToDataSourceResult(request), JsonRequestBehavior.AllowGet)); }