public JsonResult Select_Dealer(string EnquiryId) { string DealerCode = Session["DealerCode"].ToString(); string data = ""; bool result = false; data = DealerMethods.Get_DealerData(DealerCode); if (!string.IsNullOrEmpty(data)) { result = true; } return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet)); }
public JsonResult Insert_Dealer(DealerVM DealerVM) { bool result = false; string msg = "Failed to save record.."; DealerVM.Logo = Session["CompLogo"].ToString(); result = DealerMethods.Insert_Dealer(DealerVM, Session["DealerCode"].ToString()); if (result) { msg = "Successfully Added"; } return(Json(new { Success = result, Message = msg }, JsonRequestBehavior.AllowGet)); }