private void DeleteDiagnosis(object sender, EventArgs e) { var diagnosis = diagnosisRepository.GetById(diagnosisId); if (diagnosisRepository.Delete(diagnosis) > 0) { MessageBox.Show("Deleted successfully"); } Clear(); FillDataGridView(); }
public void Delete(Diagnosis entity) => _diagnosisRepository.Delete(entity);