Esempio n. 1
0
        public GetBookingResponse GetBooking(GetBookingRequest request)
        {
            AdministrationServiceDAO adminDAO = new AdministrationServiceDAO();
            booking result = adminDAO.GetBooking(request.id, request.user_id, request.apartment_id, request.date_from, request.date_to);

            if (result != null)
            {
                return(new GetBookingResponse(result));
            }
            else
            {
                ThrowNotFoundException();
                return(null);
            }
        }