Esempio n. 1
0
        public ActionResult IndexAjax([DataSourceRequest] DataSourceRequest dsRequest, ServiceProvider searchProvider)
        {
            if (dsRequest.Filters == null)
            {
                dsRequest.Filters = new List <IFilterDescriptor>();
            }
            //var data = regionRepository.FindAllByWorkerID(CurrentLoggedInWorker.ID, 0).Where(item => item.IsActive == true).Select(m=>m.ID).ToList();
            DataSourceResult result = serviceproviderRepository.FindAllByRegion(searchProvider, dsRequest);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }