예제 #1
0
 /// <summary>
 /// 删除书签
 /// </summary>
 public static async Task <int> Delete(Bookmark bookmark)
 {
     if (bookmark == null)
     {
         throw new ArgumentNullException(nameof(bookmark));
     }
     using (DbHelper db = new DbHelper())
     {
         return(await BookmarkRepository.Delete(db, bookmark));
     }
 }
        public async Task <Bookmarks> DeleteBookmark(int uid, string tid)
        {
            var bookmark = await _bookmarks.WhereByTitleAndUserId(uid, tid);

            return(await _bookmarks.Delete(bookmark.First()));
        }