private StateTax AssignStateInfo(string stateInput) { taxResponse = manager.LookupState(stateInput.ToUpper()); if (taxResponse.Success) { return(taxResponse.StateTaxInfo); } return(null); }
public StateTaxLookupResponse LookupState(string stateInput) { StateTaxLookupResponse response = new StateTaxLookupResponse(); var state = _stateTaxRespository.GetStateTax(stateInput); if (state == null) { response.Success = false; response.Message = "State not found"; } else { response.Success = true; response.StateTaxInfo = state; } return(response); }