public IActionResult EditSpecies(int id, Species species) { if (id != species.Id) { return(ViewBag.Message = "Invalid Id"); } _db.EditSpecie(species); return(RedirectToAction(nameof(Species))); }