Ejemplo n.º 1
0
        public async Task <Unit> Handle(SeedSampleDataCommand request, CancellationToken cancellationToken)
        {
            var seeder = new SampleDataSeeder(_context, _userManager);

            await seeder.SeedAllAsync(cancellationToken);

            return(Unit.Value);
        }
        public async Task <Unit> Handle(SeedSampleDataCommand request, CancellationToken cancellationToken)
        {
            var seeder      = new SampleDataSeeder(_context);
            var profileData = await _storageProvider.GetProfileData();

            await seeder.SeedAllAsync(profileData, cancellationToken);

            return(Unit.Value);
        }