public IActionResult AddProductAttribute(AttributeGroupProductAttributeViewModel vm) { _productAttrRepo.AddProductAttribute(vm); var url = Url.Action("Index", "ProductAttribute"); return(Json(url)); }
public ActionResult AddProductAttribute(int productId, int attributeId, string value) { productAttributeRepository.AddProductAttribute(productId, attributeId, value); return(Json(new { Error = false }, JsonRequestBehavior.AllowGet)); }