public async Task <UserAccount> GetByUserNameAsync(string userName) { return(await _dbContext.UserAccounts.Where(UserAccountQueries.UserAccountByUserName(userName)).SingleOrDefaultAsync()); }
public async Task <UserAccount> GetByIdAsync(int userId) { return(await _dbContext.UserAccounts.Where(UserAccountQueries.UserAccountById(userId)).SingleOrDefaultAsync()); }