public Boolean CheckStateNameExist(string StateName) { Boolean StateNameExsit; StateNameExsit = _stateRepo.CheckStateNameExist(StateName); return(StateNameExsit); }
public JsonResult CheckStateNameExist(string stateName) { bool check = false; StateViewModel sViewModel = new StateViewModel(); try { check = _sRepo.CheckStateNameExist(stateName); Logger.Debug("State Controller CheckStateNameExist"); } catch (Exception ex) { Logger.Error("State Controller - CheckStateNameExist" + ex.Message); } return(Json(check, JsonRequestBehavior.AllowGet)); }