Exemplo n.º 1
0
        public Response FetchStateTaxInfo(string stateAbbreviation)
        {
            var stateTaxRepo = new TaxRepo();
            var response = new Response();

            var stateTaxInfo = stateTaxRepo.GetStateTaxInfo(stateAbbreviation);

            if (stateTaxInfo == null)
            {
                response.Success = false;
                response.Message = "That state is not in our database.";
            }
            else
            {
                response.Success = true;
                response.StateTaxInfo = stateTaxInfo;
            }

            return response;
        }
Exemplo n.º 2
0
        public List<Tax> FetchListOfStates()
        {
            var stateTaxRepo = new TaxRepo();

            return stateTaxRepo.GetTaxesList();
        }