Ejemplo n.º 1
0
        public async Task <bool> Handle(ConnectToMapEventsUseCaseRequest message, IOutputPort <ConnectToMapEventsUseCaseResponse> outputPort)
        {
            await _mapRepository.AddUserToMapEvent(message.mapEventId);

            outputPort.Handle(new ConnectToMapEventsUseCaseResponse(null, true, "Add user to map event complete"));
            return(true);
        }