예제 #1
0
 public virtual ActionResult Edit(ProductViewModel model)
 {
     if (ModelState.IsValid)
     {
         _productHandler.Update(model.CreateProductDomain());
         _productHandler.Commit();
         return(RedirectToAction("Index"));
     }
     return(View(model));
 }