public void OnActionExecuted(ActionExecutedContext context) { if (context.Exception == null) { _databaseManager.Commit(); _rethinkDbDelegateBus.Commit(); } }
public void Seed() { var seeders = _seeders.ToList(); seeders.Sort(); foreach (var seeder in seeders) { seeder.Seed(); _databaseManager.Commit(); _rethinkDbDelegateBus.Commit(); } }