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