public JsonResult Select_DataFromBookingNo(string EnquiryId) { string data; bool result = false; DealerCode = Session["DealerCode"].ToString(); data = VehReceiptMethods.GetDataFromBookingNo(EnquiryId, DealerCode); if (!string.IsNullOrEmpty(data)) { result = true; } return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet)); }