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