public Task <int> SaveItemAsync2(Gendre item) { if (item.Id != 0) { return(database.UpdateAsync(item)); } else { return(database.InsertAsync(item)); } }
public Task <int> DeleteItemAsync2(Gendre item) { return(database.DeleteAsync(item)); }