Beispiel #1
0
        public async Task <ReactionRole> CreateAsync(ReactionRole role)
        {
            await _db.ReactionRoles.AddAsync(role);

            await SaveAsync();

            return(role);
        }
Beispiel #2
0
 public Task DeleteAsync(ReactionRole role)
 {
     _db.ReactionRoles.Remove(role);
     return(SaveAsync());
 }