public async Task Commit() { await context.SaveChanges(); }
public async Task <bool> Commit() { var changeAmount = await _mongoDbContext.SaveChanges(); return(changeAmount > 0); }
public CommandResponse Commit() { return(new CommandResponse(_context.SaveChanges().Success)); }