public HttpResponseMessage BookRoom(int RoomId, DateTime date, string status = "optional") { HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK); response.Content = new StringContent(_hotelManager.BookRoom(RoomId, date, status)); return(response); }
public String BookRoom([FromBody] Bookings model) { return(_hotelManager.BookRoom(model)); }