public IActionResult AddDisease(Disease disease) { var name = _db.GetDiseases().FindAll(a => a.Name == disease.Name).Count(); if (name == 0) { if (ModelState.IsValid) { _db.AddDisease(disease); return(RedirectToAction(nameof(GetDisease))); } } ViewBag.Message = "already exists"; return(View()); }