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