public async Task <int> SaveRecentPR(RecentPR item) { if (item.ID == 0) { item.ID = this.RecentPRs.Result.Where(t => t.EntryType == item.EntryType).Count() + 1; return(await db.InsertAsync(item)); } else { return(await db.UpdateAsync(item)); } }
public async Task <int> DeleteItemAsync(RecentPR item) { return(await db.DeleteAsync(item)); }