ForumController Class

The ForumController class is responsible for handling requests related to the forum.
public class ForumController : Controller
This language is not supported or no code example is available.
Name Description
Public constructor ForumController(FPTVContext, UserManager<UserBase>) Constructor for ForumController class.
Top
Methods
 
Name Description
Public method BugsAndSuggestionsAsync(string, string) Retrieves the sticky topic for the Bugs and Suggestions page, and orders the comments based on the filter parameter.
Public method CommentAsync(IFormCollection)
Public method CommentReportRemove(Guid)
Public method CreateAsync(IFormCollection)
Public method DeleteCommentAsync(Guid, int) Deletes a comment from the database.
Public method DeletePostAsync(int) Deletes a post from the forum.
Public method DeleteReportedCommentAsync(Guid)
Public method DeleteReportedPostAsync(int) Deletes a reported post and all its comments and reactions.
Public method IndexAsync(string, string) Retrieves a list of topics from the database, sorted according to the filter and search parameters.
Public method IndexAsyncTest() Retrieves a list of topics from the database and passes them to the view.
Public method NewTopic()
Public method Profile(Guid)
Public method React(ReactionType, Guid, int, string) React to a comment with a given reaction type.
Public method ReportComment(Guid, int, bool)
Public method ReportPost(int)
Public method ReportedTopicsAndComments() Retrieves a list of reported topics and comments from the database.
Public method Rules()
Public method TopicAsync(int, string, string)
Public method TopicReportRemove(int)
Top

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition