public Task <InvitationDTO[]> Handle(GetInvitationByUserQuery request, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); var invitation = _invitationRepository.FindByUserId(request.UserId); return(Task.FromResult(invitation)); }