public async Task <IEnumerable <PersistedGrant> > GetAllAsync(string subjectId) { var result = await _repository.FindAsync <PersistedGrant>(i => i.SubjectId == subjectId); return(result.ToList()); }
public async Task <IEnumerable <IdentityResource> > FindIdentityResourcesByScopeAsync(IEnumerable <string> scopeNames) { var results = await _repository.FindAsync <IdentityResource>(a => scopeNames.Contains(a.Name)); return(results.ToList()); }