private async void YesButton_Click(object sender, RoutedEventArgs e) { MedicalRecord medicalRecord = Mapping.Mapper.Map <MedicalRecord>(medicalRecordViewModel); DbStatus status = await medicalRecordService.Delete(medicalRecord); this.Close(); }
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)); }