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>()); }
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>()); }