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