ForumUserFavoritesInfoProviderAddUserFavoritePost Method |
Adds post to user favorites (if the rercord does not exists yet).
Namespace: CMS.ForumsAssembly: CMS.Forums (in CMS.Forums.dll) Version: 10.0.0
Syntax public static bool AddUserFavoritePost(
int postId,
int userId,
string favoriteName,
int siteId
)
Parameters
- postId
- Type: SystemInt32
ID of the favorite post - userId
- Type: SystemInt32
ID of the user - favoriteName
- Type: SystemString
Favorite name - siteId
- Type: SystemInt32
Site id
Return Value
Type:
BooleanReturns true if forum was added to favorites
See Also