C# Class Skimur.Web.Controllers.PostsController

Inheritance: BaseController
Afficher le fichier Open project: skimur/skimur

Méthodes publiques

Méthode Description
AnnouncementPosts ( ) : Microsoft.AspNet.Mvc.ActionResult
Frontpage ( PostsSortBy sort, PostsTimeFilter time, int pageNumber, int pageSize ) : Microsoft.AspNet.Mvc.ActionResult
Post ( string subName, System.Guid id, CommentSortBy commentsSort, System.Guid commentId = null, int limit = 100, int context ) : Microsoft.AspNet.Mvc.ActionResult
Posts ( string subName, PostsSortBy sort, PostsTimeFilter time, int pageNumber, int pageSize ) : Microsoft.AspNet.Mvc.ActionResult
PostsController ( ISubDao subDao, ISubWrapper subWrapper, IPostDao postDao, IPostWrapper postWrapper, IUserContext userContext, ICommandBus commandBus, IContextService contextService, ICommentTreeContextBuilder commentTreeContextBuilder, ICommentDao commentDao, ISubActivityDao subActivityDao, ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder ) : System

Private Methods

Méthode Description
Approve ( System.Guid postId ) : Microsoft.AspNet.Mvc.ActionResult
Create ( CreatePostModel model, string subName = null ) : Microsoft.AspNet.Mvc.ActionResult
Create ( string subName = null, string type = null ) : Microsoft.AspNet.Mvc.ActionResult
Delete ( System.Guid postId, string reason ) : Microsoft.AspNet.Mvc.ActionResult
Edit ( EditPostModel model ) : Microsoft.AspNet.Mvc.ActionResult
Remove ( System.Guid postId ) : Microsoft.AspNet.Mvc.ActionResult
ToggleNsfw ( System.Guid postId, bool nsfw ) : Microsoft.AspNet.Mvc.ActionResult
ToggleSticky ( System.Guid postId, bool sticky ) : Microsoft.AspNet.Mvc.ActionResult
Unmoderated ( string subName ) : Microsoft.AspNet.Mvc.ActionResult

Method Details

AnnouncementPosts() public méthode

public AnnouncementPosts ( ) : Microsoft.AspNet.Mvc.ActionResult
Résultat Microsoft.AspNet.Mvc.ActionResult

Frontpage() public méthode

public Frontpage ( PostsSortBy sort, PostsTimeFilter time, int pageNumber, int pageSize ) : Microsoft.AspNet.Mvc.ActionResult
sort PostsSortBy
time PostsTimeFilter
pageNumber int
pageSize int
Résultat Microsoft.AspNet.Mvc.ActionResult

Post() public méthode

public Post ( string subName, System.Guid id, CommentSortBy commentsSort, System.Guid commentId = null, int limit = 100, int context ) : Microsoft.AspNet.Mvc.ActionResult
subName string
id System.Guid
commentsSort CommentSortBy
commentId System.Guid
limit int
context int
Résultat Microsoft.AspNet.Mvc.ActionResult

Posts() public méthode

public Posts ( string subName, PostsSortBy sort, PostsTimeFilter time, int pageNumber, int pageSize ) : Microsoft.AspNet.Mvc.ActionResult
subName string
sort PostsSortBy
time PostsTimeFilter
pageNumber int
pageSize int
Résultat Microsoft.AspNet.Mvc.ActionResult

PostsController() public méthode

public PostsController ( ISubDao subDao, ISubWrapper subWrapper, IPostDao postDao, IPostWrapper postWrapper, IUserContext userContext, ICommandBus commandBus, IContextService contextService, ICommentTreeContextBuilder commentTreeContextBuilder, ICommentDao commentDao, ISubActivityDao subActivityDao, ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder ) : System
subDao ISubDao
subWrapper ISubWrapper
postDao IPostDao
postWrapper IPostWrapper
userContext IUserContext
commandBus ICommandBus
contextService IContextService
commentTreeContextBuilder ICommentTreeContextBuilder
commentDao ICommentDao
subActivityDao ISubActivityDao
commentNodeHierarchyBuilder ICommentNodeHierarchyBuilder
Résultat System