Exemplo n.º 1
0
 public IActionResult EditDisease(int id, Disease disease)
 {
     if (id != disease.Id)
     {
         return(ViewBag.Message = "Invalid Id");
     }
     _db.EditDisease(disease);
     return(RedirectToAction(nameof(GetDisease)));
 }