Пример #1
0
        public async Task AddSuperHeroAsync(SuperHero superHero)
        {
            await _context.SuperHeroes.AddAsync(superHero);

            await _context.SaveChangesAsync();
        }
Пример #2
0
        public async Task AddSuperPower(SuperPower superPower)
        {
            await _context.SuperPowers.AddAsync(superPower);

            await _context.SaveChangesAsync();
        }