public JsonResult Delete_ProdRecMaster(string EnquiryId, string DealerCode) { bool result = false; DealerCode = Session["DealerCode"].ToString(); string msg = "Vehicle is Delivered , Data can't be deleted"; result = VehReceiptMethods.Delete_VehicleReceipt_Record(EnquiryId, DealerCode); if (result) { msg = "Successfully Deleted"; } return Json(new { Success = result, Message = msg }, JsonRequestBehavior.AllowGet); }