Exemplo n.º 1
0
 public async Task DeleteAsync(RoleGroup entity)
 {
     await Task.FromResult(_context.RoleGroups.Remove(entity));
 }
Exemplo n.º 2
0
 public void Update(RoleGroup entity)
 {
     _context.RoleGroups.Update(entity);
     _context.Entry(entity).State = EntityState.Modified;
 }
Exemplo n.º 3
0
 public async Task<RoleGroup> AddAsync(RoleGroup entity)
 {
     var addedEntity = await _context.RoleGroups.AddAsync(entity);
     return addedEntity.Entity;
 }