Пример #1
0
 public async Task Commit()
 {
     await context.SaveChanges();
 }
Пример #2
0
        public async Task <bool> Commit()
        {
            var changeAmount = await _mongoDbContext.SaveChanges();

            return(changeAmount > 0);
        }
Пример #3
0
 public CommandResponse Commit()
 {
     return(new CommandResponse(_context.SaveChanges().Success));
 }