public async Task <IHttpActionResult> PutBookingModels(int id, BookingRequestDTO bookingRequest) { var bookingValidator = new BookingValidation(); var errorList = bookingValidator.ValidateBookingRequestDTO(bookingRequest); if (!errorList.All(x => x == true)) { return(ResponseMessage(Request.CreateResponse(HttpStatusCode.BadRequest, "The Booking Request is invalid or otherwise incomplete."))); } bookingRequest = await bookingServices.UpdateSingleBooking(id, bookingRequest); return(Ok(bookingRequest)); }