Exemple #1
0
 public Task <int> SaveItemAsync(PrayerItem item)
 {
     if (item.ID != 0)
     {
         return(Database.UpdateAsync(item));
     }
     else
     {
         return(Database.InsertAsync(item));
     }
 }
Exemple #2
0
 public Task <int> DeleteItemAsync(PrayerItem item)
 {
     return(Database.DeleteAsync(item));
 }