/// <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()); }
/// <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(); }