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