public JsonResult Check_EngineNo(string engineNo) { string msg = ""; bool result = false; DealerCode = Session["DealerCode"].ToString(); if (VehReceiptMethods.Check_EngineNo(engineNo, DealerCode) && result != true) { msg = "This Engine No car is already exist"; result = true; } return Json(new { Success = result, Message = msg }, JsonRequestBehavior.AllowGet); }