public IActionResult PostState(int id, BookingStateCreateModel bookingStateCreateModel)
        {
            bookingStateCreateModel.Id = id;
            
            IActionResult result;
            if (bookingStateCreateModel.HasErrors())
            {
                result = BadRequest(new ErrorModel(bookingStateCreateModel.Errors()));
            }
            else
            {
                var bookingState = BookingStateLogic.Create(bookingStateCreateModel.ToEntity());
                result = Created("GetBookingState", new BookingStateBasicInfoModel(bookingState));
            }

            return result;
        }
 public void ValidBookingStateModelIsValid()
 {
     Assert.IsFalse(BookingStateCreateModel.HasErrors());
 }