コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }