public IActionResult Delete(int id) { using (var data = new AnimalData()) data.Delete(id); return(RedirectToAction("Index")); }
public IActionResult Delete(int id) { using (var data = new AnimalData()) data.Delete(id); return(RedirectToAction("Index")); }