Esempio n. 1
0
 public Task <int> SaveShotDrinkAsync(ShotDrink drink)
 {
     if (drink.ID != 0)
     {
         return(database.UpdateAsync(drink));
     }
     else
     {
         return(database.InsertAsync(drink));
     }
 }
Esempio n. 2
0
 public Task <int> DeleteShotDrinkAsync(ShotDrink drink)
 {
     return(database.DeleteAsync(drink));
 }