Ejemplo n.º 1
0
            public async Task <Unit> Handle(SeedInitialDataCommand request, CancellationToken cancellationToken)
            {
                var seeder = new InitialDataSeeder(context, logger);

                await seeder.SeedAllAsync(cancellationToken);

                return(Unit.Value);
            }
            public async Task <Unit> Handle(SeedInitialDataCommand request, CancellationToken cancellationToken)
            {
                var seeder = new InitialDataSeeder(context, queryFacade, logger, tenantViewModelToDbEntityMapper);

                await seeder.SeedAllAsync(request.Tenants);

                return(Unit.Value);
            }