Exemplo n.º 1
0
        public Boolean CheckStateNameExist(string StateName)
        {
            Boolean StateNameExsit;

            StateNameExsit = _stateRepo.CheckStateNameExist(StateName);

            return(StateNameExsit);
        }
Exemplo n.º 2
0
        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));
        }