Exemple #1
0
        public IHttpActionResult Finalize(int bookingId)
        {
            BookingModel booking      = bookingHandler.Get(bookingId);
            int          roomId       = booking.RoomId;
            bool         isSuccessful = bookingHandler.Finalize(bookingId, roomId);

            if (isSuccessful)
            {
                return(Ok("Booking successfully finalized"));
            }
            else
            {
                return(BadRequest());
            }
        }