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