Beispiel #1
0
 public static async void deleteSerie(Serie serie)
 {
     try
     {
         await App.MobileService.GetTable<Serie>().DeleteAsync(serie);
     }
     catch (Exception)
     {
         await new MessageDialog("Não foi possível excluir esta Série!").ShowAsync();
     }
 }
Beispiel #2
0
 public static async Task<Serie> insertSerie(string nome)
 {
     Serie serie = new Serie { Nome = nome };
     await App.MobileService.GetTable<Serie>().InsertAsync(serie);
     return serie;
 }
Beispiel #3
0
 public static async void updateSerie(Serie serie)
 {
     await App.MobileService.GetTable<Serie>().UpdateAsync(serie);
 }