public AddOrderResponse CheckAddState(string stateAbbreviation) { AddOrderRules stateRule = new AddOrderRules(); AddOrderResponse response = stateRule.CheckState(stateAbbreviation); return(response); }
public static string GetAddState(List <Taxes> taxes) { while (true) { AddOrderRules rules = new AddOrderRules(); Response response = new Response(); string state = Console.ReadLine(); response = rules.CheckState(taxes, state); if (response.Success == false) { Console.WriteLine($"{response.Message}"); } else { return(state); } } }