public async Task <AccountDto> GetAccountInfoByUserKey(string userKey)
        {
            var accounts = await _repo.GetItemsFromCollectionAsync(CollectionId);

            return(accounts.FirstOrDefault(account => userKey.Equals(account.UserKey, StringComparison.CurrentCultureIgnoreCase)));
        }
Example #2
0
        public async Task <bool> IsExistUserKey(string userKey)
        {
            var users = await _repo.GetItemsFromCollectionAsync(CollectionId);

            return(users.Any(account => userKey.Equals(account.UserKey, StringComparison.CurrentCultureIgnoreCase)));
        }