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