public IActionResult DeleteDiagnosis(long id) { Diagnosis dia = dia_repo.Find(id); if (dia == null) { return(NotFound()); } dia_repo.Delete(dia); return(Ok()); }