Exemple #1
0
        public DisplayTaxResponse DisplayTaxResponse(string state)
        {
            DisplayTaxResponse taxResponse = new DisplayTaxResponse();

            taxResponse.Tax = _taxRepository.DisplayTax(state);
            if (taxResponse.Tax is null)
            {
                taxResponse.Success = false;
                taxResponse.Message = $"{state} is an invalid state.";
            }
            else
            {
                taxResponse.Success = true;
            }
            return(taxResponse);
        }