public Task <AuthenticationToken> GetActiveAsync(string token, int accountId) { return(Task.Run(() => AuthenticationTokens.FirstOrDefault(x => x.AccountId == accountId && x.Token == token))); }
public Task <AuthenticationToken> GetActiveByAccountIdAsync(int accountId) { return(Task.Run(() => AuthenticationTokens.FirstOrDefault(x => x.AccountId == accountId))); }