public async Task <UserAccounts> GetAccountsAsync() { var result = await configurationAccounts.GetAccountsAsync().ConfigureAwait(false); var userAccounts = new UserAccounts(); userAccounts.Accounts.AddRange(result.Accounts.Select(ua => ua.ToUserAccount()).ToList()); return(userAccounts); }
public async Task <UserAccounts> GetAccountsAsync() { var result = await configurationAccounts.GetAccountsAsync(); return(new UserAccounts { Accounts = result.Accounts.Select(ua => ua.ToUserAccount()).ToList() }); }