public ActionResult GetProviderServicesAtDate(ServiceProviderModel provider,DateTime date) { var services = _servicesService.GetAllServicesWithMatchingCriteria(date,provider); JsonEventsListViewModel events = new JsonEventsListViewModel(services); return new JsonNetResult(new { success = true, data = events }, JsonRequestBehavior.AllowGet); }
public ActionResult GetAll() { var services = _servicesService.GetAll(); JsonEventsListViewModel events = new JsonEventsListViewModel(services.Where(x=>x.ServiceProvider.Id==3).ToList()); return new JsonNetResult(new { success = true, data = events }, JsonRequestBehavior.AllowGet); }