Beispiel #1
0
    public async Task CreateGroupAsync(Group @group)
    {
        // TODO : Mediator For CQRS
        await _dbContext.Groups.AddAsync(group);

        await _dbContext.SaveChangesAsync();

        //
    }
Beispiel #2
0
 public async Task UpdateGroupAsync(Group @group)
 {
     _dbContext.Groups.Update(group);
     await _dbContext.SaveChangesAsync();
 }