public async Task <Unit> Handle(AcceptMeetingGroupProposalCommand request, CancellationToken cancellationToken) { var meetingGroupProposal = await _meetingGroupProposalRepository.GetByIdAsync(new MeetingGroupProposalId(request.MeetingGroupProposalId)); meetingGroupProposal.Accept(_userContext.UserId); return(Unit.Value); }
public async Task <Unit> Handle(CreateNewMeetingGroupCommand request, CancellationToken cancellationToken) { var meetingGroupProposal = await _meetingGroupProposalRepository.GetByIdAsync(request.MeetingGroupProposalId); var meetingGroup = meetingGroupProposal.CreateMeetingGroup(); await _meetingGroupRepository.AddAsync(meetingGroup); return(Unit.Value); }