public override void OnViewLoaded() { SlotSearchCriteria criteria = new SlotSearchCriteria(); criteria.StartDateTime = View.StartDate; criteria.EndDateTime = View.EndDate; criteria.WeekDays = View.WeekDays; criteria.ProviderId = View.ProviderId; criteria.ClinicTypeId = View.ClinicTypeId; criteria.Status = 1; // Available View.Slots = _controller.Find(criteria); }
public override void OnViewLoaded() { ProviderSearchCriteria criteria = new ProviderSearchCriteria(); criteria.ClinicTypesId = View.ClinicTypeId; criteria.KeyWords = View.Keywords; if (View.WithinMiles.HasValue) { criteria.WithinMiles = (double)View.WithinMiles; criteria.ZipCode = View.ZipCode; } View.Providers = _controller.Find(criteria); }