コード例 #1
0
        public IActionResult UpdateDiagnosis(int id)
        {
            Diagnosis diag = repo.GetDiagnosis(id);

            repo.UpdateDiagnosis(diag);

            if (diag == null)
            {
                return(View("DiagnosisNotFound"));
            }

            return(View(diag));
        }
コード例 #2
0
 public void UpdateDiagnosis(int diagnosisId, string diagnosisName)
 {
     _diagnosisRepository.UpdateDiagnosis(diagnosisId, diagnosisName);
 }