• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Available Date of Rooms

 
Flavio Nobili
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all,
I've received the URLyBird assignment, which says I must allow the user to book a room of a hotel. The data schema contains, besides others, a date field described as below:

Date - Available date. The single night to which this record relates.

My boubt is: Should I allow the user to book a room if its date field is less than the actual date?
Regards,
Fl�vio.
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Flavio,
Should I allow the user to book a room if its date field is less than the actual date?

That question is a bit comparable to the 48-hours one. My suggestion is to define some bookable time range through properties (centralized server-side) and to make it optional (so that your grader still has some data to play with ).
Regards,
Phil.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic