public ActionResult Create(Product product) { if (ModelState.IsValid) { _productDataSerice.AddProduct(product); return(RedirectToAction("Index")); } return(View(product)); }
public ActionResult Create(Product product) { if (ModelState.IsValid) { _productDataSerice.AddProduct(product); return(RedirectToAction("Index")); } return(View(product)); }