예제 #1
0
        public TaxStateLookupResponse FindTaxState(string stateInput)
        {
            TaxStateLookupResponse response = new TaxStateLookupResponse();

            response.TaxState = _taxRepository.LoadOne(stateInput);

            if (response.TaxState == null)
            {
                response.Success = false;
                response.Message = $"{stateInput} does not exist in our directory";
            }
            else
            {
                response.Success = true;
            }
            return(response);
        }