public ActionResult NewProduct([FromBody] JObject postbody) { 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 ANP = adal.AddNewProduct(ProductName, BillingName, Type, GST, HSNCode, Action); return(Ok(ANP)); }