public BillingAddress GetDefaultBillingAddress() { var streets = new[] { estimationSettings.SenderAddressLine1, estimationSettings.SenderAddressLine2, }.Where(i => !string.IsNullOrEmpty(i)).ToList(); string countryName = estimationSettings.SenderCountry; string stateName = estimationSettings.SenderState; int countryId = CountryInfoProvider.GetCountryInfoByCode(countryName).CountryID; int stateId = StateInfoProvider.GetStateInfoByCode(stateName).StateID; return(new BillingAddress() { Street = streets, City = estimationSettings.SenderCity, Country = countryName, CountryId = countryId, Zip = estimationSettings.SenderPostal, State = stateName, StateId = stateId }); }