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