public async Task <int> DeletePersistedGrantsAsync(int userId) { var grants = await _dbContext.PersistedGrants.Where(x => x.SubjectId == userId.ToString()).ToListAsync(); _dbContext.RemoveRange(grants); return(await AutoSaveChangesAsync()); }