예제 #1
0
        public ActionResult UpdateProduct([FromBody] JObject postbody)
        {
            int    ProductID   = Convert.ToInt32(postbody["ProductID"]);
            string ProductName = postbody["ProductName"].ToString();
            string BillingName = postbody["BillingName"].ToString();
            string Type        = postbody["Type"].ToString();
            int    GST         = Convert.ToInt32(postbody["GST"]);
            int    HSNCode     = Convert.ToInt32(postbody["HSNCode"]);
            string Action      = postbody["Action"].ToString();
            var    UP          = adal.EditProduct(ProductID, ProductName, BillingName, Type, GST, HSNCode, Action);

            return(Ok(UP));
        }