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

            return(View(supplier));
        }