public UpdateBookingResponse UpdateBooking(UpdateBookingRequest request)
        {
            AdministrationServiceDAO adminDAO = new AdministrationServiceDAO();
            bool result = adminDAO.UpdateBooking(request.booking);

            return(new UpdateBookingResponse(result));
        }
Exemple #2
0
        public UpdateBookingResponse UpdateBooking(UpdateBookingRequest request)
        {
            AdministrationServiceDAO adminDAO = new AdministrationServiceDAO();
            bool result = adminDAO.UpdateBooking(request.booking);

            if (result)
            {
                return(new UpdateBookingResponse(result));
            }
            else
            {
                ThrowNotFoundException(request.booking.id);
                return(null);
            }
        }