Exemple #1
0
 public ActionResult Edit(ProductAttributeFormModel productAttriToEdit, bool continueEditing)
 {
     if (ModelState.IsValid)
     {
         ProductAttribute productAttribute = Mapper.Map <ProductAttributeFormModel, ProductAttribute>(productAttriToEdit);
         _productAttributeService.EditProductAttribute(productAttribute);
         return(continueEditing ? RedirectToAction("Edit", "ProductAttribute", new { productAttriId = productAttribute.Id })
                            : RedirectToAction("Index", "ProductAttribute"));
     }
     else
     {
         return(View("Edit", productAttriToEdit));
     }
 }