public IActionResult Create(Ingredient i) { if (ModelState.IsValid) { i.AddToFile(i); return(RedirectToAction("Index")); } return(View()); }