public ActionResult Edit(Product model) { if (ModelState.IsValid) { _repository.SaveProduct(model); return(RedirectToAction("list", new { id = "success" })); } return(View(model)); }
public ActionResult Edit(Product model) { if (ModelState.IsValid) { _repository.SaveProduct(model); return(RedirectToAction("list", new { id = "success" })); } return(View(model)); }