public IActionResult Create(Animal e) { if (!ModelState.IsValid) { return(View(e)); } using (var data = new AnimalData()) data.Create(e); return(RedirectToAction("Index")); }