コード例 #1
0
        public async Task <Meeting> UpdateEvent(Meeting meeting)
        {
            var newEvent = meeting.ConvertObject <Event>();

            var updatedEvent = await _graphClient.Me.Events[meeting.Id].Request().UpdateAsync(newEvent);

            return(updatedEvent.ConvertObject <Meeting>());
        }
コード例 #2
0
        public async Task <Meeting> CreateEvent(Meeting meeting)
        {
            var newEvent = meeting.ConvertObject <Event>();

            var createdEvent = await _graphClient.Me.Events.Request().AddAsync(newEvent);

            return(createdEvent.ConvertObject <Meeting>());
        }