public async Task <DataServiceResponse <ScheduleResults> > GetAvailableTimes(DateTime StartDate, DateTime EndDate, string BranchNumber, int AppointmentType, int AppointmentSubType, int ClientLanguage) { string url = string.Format(SERVICE_URL, BranchNumber, AppointmentType, AppointmentSubType, StartDate.ToString("o"), EndDate.ToString("o"), ClientLanguage); url = GetOperation(url); DataServiceResponse <ScheduleResults> response = await GetData <ScheduleResults>(url); return(response); }
public async Task <bool> Load() { DataServiceResponse <Branch> response = await GetData <Branch>(ServiceUrl); if (response.Success) { Branch = response.Data; return(true); } return(false); }