private async void IParticipate_Click(object sender, RoutedEventArgs e) { string message = null; try { ParticipTicket Pt = new ParticipTicket(MenuItems.Id, App.MyProfile.IdProvider, 2/*remplacer par le nombre de participant en cour*/); ParticipTicketGest ptG = new ParticipTicketGest(); ptG.sendParticipTicket(Pt); message = "Demande Envoyée"; } catch { message = "Echec de la demande"; } var dialog = new MessageDialog(message); dialog.Commands.Add(new UICommand("OK")); await dialog.ShowAsync(); Frame.GoBack(); }
public async void sendParticipTicket(ParticipTicket sParTicket) { await App.MobileService.GetTable<ParticipTicket>().InsertAsync(sParTicket); }