Ejemplo n.º 1
0
        public TaxLookUpResponse TaxLookUp(string stateAbbreviation)
        {
            TaxLookUpResponse response = new TaxLookUpResponse();

            response.TaxInformation = _taxRepository.RetrieveTaxInfo(stateAbbreviation);

            if (response.TaxInformation == null)
            {
                response.Success = false;
                response.Message = $"There was no Tax Information found {stateAbbreviation}. Contact IT.";
            }
            else
            {
                response.Success = true;
            }

            return(response);
        }