C# 클래스 App.Core.Controllers.PostsController

상속: ApplicationController
파일 보기 프로젝트 열기: tylermercier/mvc_template

공개 메소드들

메소드 설명
Create ( Post post, int authorId ) : System.Web.Mvc.ActionResult
Destroy ( int id ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult
Index ( int page = 1 ) : System.Web.Mvc.ActionResult
New ( ) : System.Web.Mvc.ActionResult
PostsController ( IRepository repository ) : System.Collections.Generic
Search ( string query ) : System.Web.Mvc.ViewResult
Show ( int id ) : System.Web.Mvc.ActionResult
Update ( Post post, int authorId ) : System.Web.Mvc.ActionResult

메소드 상세

Create() 공개 메소드

public Create ( Post post, int authorId ) : System.Web.Mvc.ActionResult
post Post
authorId int
리턴 System.Web.Mvc.ActionResult

Destroy() 공개 메소드

public Destroy ( int id ) : System.Web.Mvc.ActionResult
id int
리턴 System.Web.Mvc.ActionResult

Edit() 공개 메소드

public Edit ( int id ) : System.Web.Mvc.ActionResult
id int
리턴 System.Web.Mvc.ActionResult

Index() 공개 메소드

public Index ( int page = 1 ) : System.Web.Mvc.ActionResult
page int
리턴 System.Web.Mvc.ActionResult

New() 공개 메소드

public New ( ) : System.Web.Mvc.ActionResult
리턴 System.Web.Mvc.ActionResult

PostsController() 공개 메소드

public PostsController ( IRepository repository ) : System.Collections.Generic
repository IRepository
리턴 System.Collections.Generic

Search() 공개 메소드

public Search ( string query ) : System.Web.Mvc.ViewResult
query string
리턴 System.Web.Mvc.ViewResult

Show() 공개 메소드

public Show ( int id ) : System.Web.Mvc.ActionResult
id int
리턴 System.Web.Mvc.ActionResult

Update() 공개 메소드

public Update ( Post post, int authorId ) : System.Web.Mvc.ActionResult
post Post
authorId int
리턴 System.Web.Mvc.ActionResult