public List <Reservation> GetReservationsByRoomAndDate(int roomId, DateTime date) { using (var uow = UnitOfWorkProvider.Create()) { var reservationFilterDTO = new ReservationFilterDTO() { DateTime = date, RoomId = roomId }; return(new ReservationsQuery(reservationFilterDTO).Execute()); } }
public ReservationsQuery(ReservationFilterDTO filter) { Filter = filter; }