示例#1
0
        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);
        }
示例#2
0
        public async Task <UserAccounts> GetAccountsAsync()
        {
            var result = await configurationAccounts.GetAccountsAsync();

            return(new UserAccounts
            {
                Accounts = result.Accounts.Select(ua => ua.ToUserAccount()).ToList()
            });
        }