private void ExecuteStatusChangedCommand(LookupValueDto visitStatus) { var visitStatusUpdateDto = new VisitStatusUpdateDto { VisitKey = EditingDto.Key, VisitStatus = visitStatus, UpdateDateTime = DateTime.Now }; var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher(); requestDispatcher.Add(new UpdateVisitStatusRequest { VisitStatusUpdateDto = visitStatusUpdateDto }); IsLoading = true; requestDispatcher.ProcessRequests(HandleUpdateVisitStatusCompleted, HandleUpdateVisitStatusException); }
private void ExecuteStatusUpdatedCommand(LookupValueDto visitStatus) { if (visitStatus != null && visitStatus.WellKnownName != _visit.VisitStatus.WellKnownName) { var visitStatusUpdateDto = new VisitStatusUpdateDto { VisitKey = Visit.Key, VisitStatus = visitStatus, UpdateDateTime = DateTime.Now }; var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher(); requestDispatcher.Add(new UpdateVisitStatusRequest { VisitStatusUpdateDto = visitStatusUpdateDto }); IsLoading = true; requestDispatcher.ProcessRequests(HandleUpdateVisitStatusCompleted, HandleUpdateVisitStatusException); } }
private void ExecuteStatusUpdatedCommand(ClinicianAppointmentDto clinicianAppointmentDto) { var visitStatusUpdateDto = new VisitStatusUpdateDto { VisitKey = clinicianAppointmentDto.Key, VisitStatus = clinicianAppointmentDto.VisitStatus, UpdateDateTime = DateTime.Now }; var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher(); requestDispatcher.Add(new UpdateVisitStatusRequest { VisitStatusUpdateDto = visitStatusUpdateDto }); IsLoading = true; requestDispatcher.ProcessRequests(HandleUpdateVisitStatusCompleted, HandleUpdateVisitStatusException); RefreshView(this, null); }