// ******** *********************** *********// // ******** Creates New Appointment *********// // ******** *********************** *********// public static async Task <Appointment> Add(Appointment appointment) { await SetAppointmentStore(); var roamingId = await AppointmentManager.ShowEditNewAppointmentAsync(appointment); if (roamingId == null) { return(null); } var localIDs = await _appointmentStore.FindLocalIdsFromRoamingIdAsync(roamingId); if (localIDs.Count == 0) { return(null); } var localId = localIDs[0]; return(await _appointmentStore.GetAppointmentAsync(localId)); }