Esempio n. 1
0
        public async Task Create(Rent rent)
        {
            await _context.GameRent.AddRangeAsync(rent.GamesRent);

            _context.Client.Attach(rent.Client);

            await _context.Rent.AddAsync(rent);

            await _context.SaveChangesAsync();
        }
Esempio n. 2
0
        public async Task Create(Client client)
        {
            _context.Client.Add(client);

            await _context.SaveChangesAsync();
        }
        public async Task Create(Domain.Aggregates.GameRent gameRented)
        {
            _context.GameRent.Add(gameRented);

            await _context.SaveChangesAsync();
        }
        public async Task Create(Game game)
        {
            _context.Game.Add(game);

            await _context.SaveChangesAsync();
        }