Exemple #1
0
        private async void SaveMeetingAsync()
        {
            if (_meeting.IsAllDay)
            {
                EnsureAllDay();
            }

            Meeting newMeeting;

            using (new Loading(this))
            {
                newMeeting = await(string.IsNullOrEmpty(_meeting.Id) ?
                                   OfficeService.CreateEvent(_meeting) :
                                   OfficeService.UpdateEvent(_meeting));
            }

            if (newMeeting != null)
            {
                GetEvent <MeetingUpdatedEvent>().Publish(newMeeting);
                GoBack();
            }
        }