Esempio n. 1
0
        public JsonResult UpdateProduct(ViewModel.ProductModel product)
        {
            Business.ProductBusiness business = new Business.ProductBusiness();
            var returnResult = business.UpdateProduct(product);

            return(Json(returnResult));
        }
Esempio n. 2
0
        public JsonResult AddProduct(ViewModel.ProductModel product)
        {
            var business     = new Business.ProductBusiness();
            var returnResult = business.AddProduct(product);

            return(Json(returnResult));
        }