示例#1
0
        public void AddSeat(int seatNr, bool isReserved)
        {
            var seat = new Seat
            {
                SeatNr     = seatNr,
                IsReserved = isReserved
            };

            seatContext.Add(seat);
        }
示例#2
0
 public void Add(ISeat seat)
 {
     _context.Add(seat);
 }