public Result CreateReservation(int meetupId, ReserveSeatRequest request)
        {
            var meetup = _repository.Load(meetupId);
            var result = meetup.ReserveSeat(request.ParticipantUserId, DateTime.UtcNow);

            _repository.Commit();

            return(result);
        }
        public IActionResult CreateSeatReservation(int meetupId, ReserveSeatRequest request)
        {
            var result = _applicationService.CreateReservation(meetupId, request);

            if (result.Success)
            {
                return(CreatedAtAction(nameof(Get), new { id = meetupId }, null));
            }
            else
            {
                return(BadRequest(new { error = result.ErrorMessage }));
            }
        }
        public IActionResult CreateSeatReservation(Guid meetupId, ReserveSeatRequest request)
        {
            var result = _commandDispatcher
                         .Handle <ReserveSeatCommand, Result>(
                new ReserveSeatCommand(meetupId, request.ParticipantUserId));

            if (result.Success)
            {
                return(CreatedAtAction(nameof(Get), new { id = meetupId }, null));
            }
            else
            {
                return(BadRequest(new { error = result.ErrorMessage }));
            }
        }