public async Task <IActionResult> AddPropertyRoom(int id, Models.Input.Room.Create.CreateRoom room,
                                                          CancellationToken cancellationToken)
        {
            var command = _mapper.Map <CreateRoomCommand>(room);

            command.PropertyId = id;
            var newProperty = await _mediator.Send(command, cancellationToken);

            return(Created($"properties/{id}/room/{newProperty.Id}", newProperty));
        }
        public async Task <IActionResult> CreateRoom(int id, Models.Input.Room.Create.CreateRoom room,
                                                     CancellationToken cancellationToken)
        {
            var command = _mapper.Map <CreateCommand>(room);

            command.PropertyId = id;

            var newRoom = await _mediator.Send(command, cancellationToken);

            return(Created($"room/{newRoom}", newRoom));
        }