예제 #1
0
        private async void YesButton_Click(object sender, RoutedEventArgs e)
        {
            MedicalRecord medicalRecord = Mapping.Mapper.Map <MedicalRecord>(medicalRecordViewModel);
            DbStatus      status        = await medicalRecordService.Delete(medicalRecord);

            this.Close();
        }
예제 #2
0
        private async void YesButton_Click(object sender, RoutedEventArgs e)
        {
            DbStatus status = await medicalRecordService.Delete(Mapping.Mapper.Map <MedicalRecord>(medicalRecordViewModel));

            OperationStatus = StatusHandler.Handle(OperationType.Delete, status);
            Close();
        }
 public bool Delete(MedicalRecord obj)
 {
     return(_service.Delete(obj));
 }