Exemplo n.º 1
0
 public IActionResult EditName(int id, ScientificName scientific)
 {
     if (id != scientific.Id)
     {
         return(ViewBag.Message = "Invalid Id");
     }
     _db.EditName(scientific);
     return(RedirectToAction(nameof(GetScientificNames)));
 }