Exemplo n.º 1
0
        public String BookRoom(int id, String name, [FromBody] ClientBookingInformation bookingInfo)
        {
            //  return hotelControl.Booking(name,id , bookingInfo.ClientFirstName, bookingInfo.ClientLastName, bookingInfo.ClientCardInfo);

            return("success");
        }
Exemplo n.º 2
0
 public List <Hotel> PostSearchHotel([FromBody] ClientBookingInformation hotelInfo)
 {
     return(hotelControl.hotelSearch(hotelInfo.HotelTown, hotelInfo.MinPrice.Value, hotelInfo.MaxPrice.Value, hotelInfo.NumberOfStars.Value));//.Value initialises a nullable variable
 }