Example #1
0
        public IActionResult AddProductAttribute(AttributeGroupProductAttributeViewModel vm)
        {
            _productAttrRepo.AddProductAttribute(vm);
            var url = Url.Action("Index", "ProductAttribute");

            return(Json(url));
        }
Example #2
0
        public ActionResult AddProductAttribute(int productId, int attributeId, string value)
        {
            productAttributeRepository.AddProductAttribute(productId, attributeId, value);

            return(Json(new
            {
                Error = false
            }, JsonRequestBehavior.AllowGet));
        }