예제 #1
0
 public static async Task <bool> InGangAsync(ulong userId, ulong guildId)
 {
     return(await BaseRepository <Gang> .SearchFor(c => (c.LeaderId == userId || c.Members.Any(x => x.UserId == userId)) && c.GuildId == guildId).AnyAsync());
 }
예제 #2
0
 public static async Task <List <User> > AllAsync()
 {
     return(await BaseRepository <User> .GetAll().ToListAsync());
 }