public String BookRoom(int id, String name, [FromBody] ClientBookingInformation bookingInfo) { // return hotelControl.Booking(name,id , bookingInfo.ClientFirstName, bookingInfo.ClientLastName, bookingInfo.ClientCardInfo); return("success"); }
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 }