// Added by Bharat on 09 June 2017 public JsonResult GetUser(int BPartner_ID) { Ctx ct = Session["ctx"] as Ctx; EmailModel model = new EmailModel(ct); return(Json(JsonConvert.SerializeObject(model.GetUser(BPartner_ID)), JsonRequestBehavior.AllowGet)); }