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