public IActionResult UpdateDiagnosis(int id) { Diagnosis diag = repo.GetDiagnosis(id); repo.UpdateDiagnosis(diag); if (diag == null) { return(View("DiagnosisNotFound")); } return(View(diag)); }
public void UpdateDiagnosis(int diagnosisId, string diagnosisName) { _diagnosisRepository.UpdateDiagnosis(diagnosisId, diagnosisName); }