コード例 #1
0
        public JsonResult UpdateProduct(ViewModel.ProductModel product)
        {
            Business.ProductBusiness business = new Business.ProductBusiness();
            var returnResult = business.UpdateProduct(product);

            return(Json(returnResult));
        }
コード例 #2
0
        public JsonResult AddProduct(ViewModel.ProductModel product)
        {
            var business     = new Business.ProductBusiness();
            var returnResult = business.AddProduct(product);

            return(Json(returnResult));
        }