public ActionResult Create(Supplier supplier) { if (ModelState.IsValid) { _store.AddSupplier(supplier); return(RedirectToAction("Index")); } return(View(supplier)); }
public ActionResult Create(Supplier supplier) { if (ModelState.IsValid) { _store.AddSupplier(supplier); return(RedirectToAction("Index")); } return(View(supplier)); }