C# Class App.Core.Controllers.PostsController

Inheritance: ApplicationController
Afficher le fichier Open project: tylermercier/mvc_template

Méthodes publiques

Méthode 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 méthode

public Create ( Post post, int authorId ) : System.Web.Mvc.ActionResult
post Post
authorId int
Résultat System.Web.Mvc.ActionResult

Destroy() public méthode

public Destroy ( int id ) : System.Web.Mvc.ActionResult
id int
Résultat System.Web.Mvc.ActionResult

Edit() public méthode

public Edit ( int id ) : System.Web.Mvc.ActionResult
id int
Résultat System.Web.Mvc.ActionResult

Index() public méthode

public Index ( int page = 1 ) : System.Web.Mvc.ActionResult
page int
Résultat System.Web.Mvc.ActionResult

New() public méthode

public New ( ) : System.Web.Mvc.ActionResult
Résultat System.Web.Mvc.ActionResult

PostsController() public méthode

public PostsController ( IRepository repository ) : System.Collections.Generic
repository IRepository
Résultat System.Collections.Generic

Search() public méthode

public Search ( string query ) : System.Web.Mvc.ViewResult
query string
Résultat System.Web.Mvc.ViewResult

Show() public méthode

public Show ( int id ) : System.Web.Mvc.ActionResult
id int
Résultat System.Web.Mvc.ActionResult

Update() public méthode

public Update ( Post post, int authorId ) : System.Web.Mvc.ActionResult
post Post
authorId int
Résultat System.Web.Mvc.ActionResult