private async Task <DataServiceResponse <CancelAppointmentResponse> > CancelAppointmentAsync() { CancelAppointmentRequest request = new CancelAppointmentRequest() { ConfirmationNumber = Appointment.ConfirmationNumber, UiLanguageCode = 1033, IsRequestFromCrm = false }; ScheduleDataSource ds = new ScheduleDataSource(); DataServiceResponse <CancelAppointmentResponse> response = await ds.CancelAppointmentAsync(request); if (response.Success) { //refresh the appointments await ApplicationData.Current.RefreshAppointmentsAsync(); } return(response); }
public async Task <DataServiceResponse <CancelAppointmentResponse> > CancelAppointmentAsync(CancelAppointmentRequest Request) { string json = JsonConvert.SerializeObject(Request); DataServiceResponse <CancelAppointmentResponse> response = await PutData <CancelAppointmentResponse>(GetOperation(CANCEL_URL), json); return(response); }