Exemplo n.º 1
0
        public IActionResult Delete(int diagnosisId)
        {
            Diagnosis deletedDiagnosis = repository.DeleteDiagnosis(diagnosisId);

            log.Info($"Диагноз {deletedDiagnosis} удален.");
            if (deletedDiagnosis != null)
            {
                TempData["message"] = $"{deletedDiagnosis.Name} был удален";
            }
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public void DeleteDiagnosis(int diagnosisId)
 {
     _diagnosisRepository.DeleteDiagnosis(diagnosisId);
 }
Exemplo n.º 3
0
        public IActionResult DeleteDiagnosis(Diagnosis diagnosis)
        {
            repo.DeleteDiagnosis(diagnosis);

            return(RedirectToAction("Index"));
        }