public async Task <IActionResult> AddComment([FromBody] AddMeetingCommentRequest request) { var commentId = await _meetingModule.ExecuteCommandAsync(new AddMeetingCommentCommand( request.MeetingId, request.Comment)); return(Ok(commentId)); }
public async Task <IActionResult> EditMeetingGroupGeneralAttributes([FromRoute] Guid meetingGroupId, [FromBody] EditMeetingGroupGeneralAttributesRequest request) { await _meetingsModule.ExecuteCommandAsync(new EditMeetingGroupGeneralAttributesCommand( meetingGroupId, request.Name, request.Description, request.LocationCity, request.LocationCountry)); return(Ok()); }
public static async Task <Guid> CreateMeetingAsync( IMeetingsModule meetingsModule, ExecutionContextMock executionContext) { var proposalId = await meetingsModule.ExecuteCommandAsync( new ProposeMeetingGroupCommand( "Amazing group", "Absolutely amazing meeting group.", "London", "UK")); await meetingsModule.ExecuteCommandAsync( new CreateNewMeetingGroupCommand( Guid.NewGuid(), new MeetingGroupProposalId(proposalId))); var meetingGroups = await meetingsModule.ExecuteQueryAsync(new GetAllMeetingGroupsQuery()); var meetingGroup = meetingGroups.Single(); await meetingsModule.ExecuteCommandAsync( new SetMeetingGroupExpirationDateCommand( Guid.NewGuid(), meetingGroup.Id, SystemClock.Now.AddMonths(1))); var meetingId = await meetingsModule.ExecuteCommandAsync( new CreateMeetingCommand( meetingGroup.Id, "Some meeting", DateTime.UtcNow.AddDays(1), DateTime.UtcNow.AddDays(10), "Some very nice meeting.", "UK", "Baker street", "W2 2SZ", "London", 25, 1, null, null, null, null, new List <Guid> { executionContext.UserId })); return(meetingId); }
public async Task <IActionResult> ProposeMeetingGroup(ProposeMeetingGroupRequest request) { await _meetingsModule.ExecuteCommandAsync( new ProposeMeetingGroupCommand( request.Name, request.Description, request.LocationCity, request.LocationCountryCode)); return(Ok()); }
public async Task <IActionResult> CreateNewMeeting([FromBody] CreateMeetingRequest request) { await _meetingsModule.ExecuteCommandAsync(new CreateMeetingCommand(request.MeetingGroupId, request.Title, request.TermStartDate, request.TermEndDate, request.Description, request.MeetingLocationName, request.MeetingLocationAddress, request.MeetingLocationPostalCode, request.MeetingLocationCity, request.AttendeesLimit, request.GuestsLimit, request.RSVPTermStartDate, request.RSVPTermEndDate, request.EventFeeValue, request.EventFeeCurrency, request.HostMemberIds)); return(Ok()); }
public async Task <IActionResult> DisableCommenting(Guid meetingId) { await _meetingsModule.ExecuteCommandAsync(new DisableMeetingCommentingConfigurationCommand(meetingId)); return(Ok()); }