public JsonResult CheckEmailIdExist(string emailid) { bool check = false; VendorViewModel vViewModel = new VendorViewModel(); try { check = _vRepo.CheckEmailIdExist(emailid); Logger.Debug("Vendor Controller CheckEmailIdExist"); } catch (Exception ex) { Logger.Error("Vendor Controller - CheckEmailIdExist" + ex.Message); } return(Json(check, JsonRequestBehavior.AllowGet)); }