public JsonResult GetC_UOM_ID(string fields) { string retJSON = ""; if (Session["ctx"] != null) { VAdvantage.Utility.Ctx ctx = Session["ctx"] as Ctx; MProductModel objProduct = new MProductModel(); retJSON = JsonConvert.SerializeObject(objProduct.GetC_UOM_ID(ctx, fields)); } return(Json(retJSON, JsonRequestBehavior.AllowGet)); }