示例#1
0
 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));
     }
 }
示例#2
0
 public async Task <int> DeleteItemAsync(RecentPR item)
 {
     return(await db.DeleteAsync(item));
 }