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