Exemple #1
0
 public SeatDto GetSeat(int id)
 {
     return(DTOMapper.GetSeatDto(_seatRepository.Seats.FirstOrDefault(s => s.SeatId == id)));
 }
Exemple #2
0
 public IEnumerable <SeatDto> GetAllSeats()
 {
     return(_seatRepository.Seats.Select(s => DTOMapper.GetSeatDto(s)).ToList());
 }