public ActionResult ModifyAttribute([DataSourceRequest] DataSourceRequest request, ProductAttributeModel productAttributeModel) { if (productAttributeModel == null || !this.ModelState.IsValid) { return this.Json(new[] { productAttributeModel }.ToDataSourceResult(request, this.ModelState)); } try { var productAttr = DataTransfer.Transfer<Product_Attribute>( productAttributeModel, typeof(ProductAttributeModel)); this.ProductAttributeService.ModifyProductAttribute(productAttr); } catch (Exception exception) { throw new Exception(exception.Message, exception); } return Json(new[] { productAttributeModel }.ToDataSourceResult(request, ModelState)); }
public ActionResult AddAttributeValue([DataSourceRequest] DataSourceRequest request, ProductAttributeModel model) { return Json(""); }