Пример #1
0
 public BookingView GetBookingByID(int bookingID)
 {
     return(BookingMapper.ToViewEntity(_unitOfWork.BookingRepository.GetById(bookingID)));
 }
Пример #2
0
 public IEnumerable <BookingView> GetAllBookings()
 {
     return(_unitOfWork.BookingRepository.GetAll().Select(obj => BookingMapper.ToViewEntity(obj)));
 }