예제 #1
0
        /// <summary>
        /// Adds the thread to bookmarks.
        /// </summary>
        /// <param name="userID">User ID.</param>
        /// <param name="threadID">Thread ID.</param>
        /// <returns>true if save succeeded, false otherwise</returns>
        public static bool AddThreadToBookmarks(int userID, int threadID)
        {
            BookmarkEntity newBookmark = new BookmarkEntity();

            newBookmark.UserID   = userID;
            newBookmark.ThreadID = threadID;
            return(newBookmark.Save());
        }
예제 #2
0
 /// <summary>
 /// Adds the thread to bookmarks.
 /// </summary>
 /// <param name="userID">User ID.</param>
 /// <param name="threadID">Thread ID.</param>
 /// <returns>true if save succeeded, false otherwise</returns>
 public static bool AddThreadToBookmarks(int userID, int threadID)
 {
     BookmarkEntity newBookmark = new BookmarkEntity();
     newBookmark.UserID = userID;
     newBookmark.ThreadID = threadID;
     return newBookmark.Save();
 }