C# Class App.Core.Controllers.PostsController

Inheritance: ApplicationController
Show file Open project: tylermercier/mvc_template

Public Methods

Method Description
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

Method Details

Create() public method

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

Destroy() public method

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

Edit() public method

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

Index() public method

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

New() public method

public New ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

PostsController() public method

public PostsController ( IRepository repository ) : System.Collections.Generic
repository IRepository
return System.Collections.Generic

Search() public method

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

Show() public method

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

Update() public method

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