public async Task <RugNummer> UpdateRugnummer(RugNummer rugnummer)
        {
            _context.RugNummers.Update(rugnummer);
            await _context.SaveChangesAsync();

            return(rugnummer);
        }
예제 #2
0
        public async Task <Team> AddTeam(Team addTeam)
        {
            await _context.Teams.AddAsync(addTeam);

            await _context.SaveChangesAsync();

            return(addTeam);
        }
예제 #3
0
        public async Task <Sponsor> AddSneaker(Sponsor sponsor)
        {
            await _context.Sponsors.AddAsync(sponsor);

            await _context.SaveChangesAsync();

            return(sponsor);
        }
예제 #4
0
        public async Task <Player> AddPlayer(Player addPlayer)
        {
            await _context.Players.AddAsync(addPlayer);

            await _context.SaveChangesAsync();

            return(addPlayer);
        }