public IEnumerable <BookingVM> GetBookingFromDateRange(DateTime start, DateTime end, int roomId) { var mng = new BookingManager(); var bookings = BookingMapper.MapListOfBookings(mng.GetBookingInRange(start, end)); return(bookings.Where(b => b.RoomId == roomId)); }
public IEnumerable <BookingVM> GetAllBookings() { var mng = new BookingManager(); var bookings = BookingMapper.MapListOfBookings(mng.GetAllBookings()); return(bookings); }