C# Class BrickPile.UI.Areas.UI.Controllers.PagesController

Inheritance: Controller
Afficher le fichier Open project: brickpile/brickpile

Méthodes publiques

Méthode Description
Discard ( dynamic currentPage ) : System.Web.Mvc.ActionResult

Discards the draft and returns the main document.

Edit ( IPage currentPage ) : System.Web.Mvc.ActionResult

Responsible for providing the Edit view with data from the current page

Index ( dynamic currentPage, bool deleted = false ) : System.Web.Mvc.ActionResult

Default action

New ( BrickPile.UI.Areas.UI.Models.NewModel newModel, dynamic currentPage ) : System.Web.Mvc.ActionResult

News the specified new page model.

PagesController ( IDocumentStore documentStore ) : System

Initializes a new instance of the PagesController class.

Preview ( IPage currentPage ) : ActionResult

Previews the specified current page.

Publish ( string id, bool published ) : ActionResult

Publishes this instance.

Restore ( string id ) : ActionResult

Restores the specified id.

Sort ( List items ) : void

Sorts the specified items.

Private Methods

Méthode Description
Delete ( string id, bool permanent ) : System.Web.Mvc.ActionResult
Save ( [ Prefix = "NewPageModel")]IPagepageModel, dynamic currentPage ) : ActionResult
Search ( string term ) : JsonResult
Update ( dynamic currentPage, FormCollection collection ) : ActionResult

Method Details

Discard() public méthode

Discards the draft and returns the main document.
public Discard ( dynamic currentPage ) : System.Web.Mvc.ActionResult
currentPage dynamic
Résultat System.Web.Mvc.ActionResult

Edit() public méthode

Responsible for providing the Edit view with data from the current page
public Edit ( IPage currentPage ) : System.Web.Mvc.ActionResult
currentPage IPage
Résultat System.Web.Mvc.ActionResult

Index() public méthode

Default action
public Index ( dynamic currentPage, bool deleted = false ) : System.Web.Mvc.ActionResult
currentPage dynamic The current page.
deleted bool if set to true [deleted].
Résultat System.Web.Mvc.ActionResult

New() public méthode

News the specified new page model.
public New ( BrickPile.UI.Areas.UI.Models.NewModel newModel, dynamic currentPage ) : System.Web.Mvc.ActionResult
newModel BrickPile.UI.Areas.UI.Models.NewModel The new model.
currentPage dynamic The current page.
Résultat System.Web.Mvc.ActionResult

PagesController() public méthode

Initializes a new instance of the PagesController class.
public PagesController ( IDocumentStore documentStore ) : System
documentStore IDocumentStore The documentStore.
Résultat System

Preview() public méthode

Previews the specified current page.
public Preview ( IPage currentPage ) : ActionResult
currentPage IPage The current page.
Résultat ActionResult

Publish() public méthode

Publishes this instance.
public Publish ( string id, bool published ) : ActionResult
id string The id.
published bool if set to true [published].
Résultat ActionResult

Restore() public méthode

Restores the specified id.
public Restore ( string id ) : ActionResult
id string The id.
Résultat ActionResult

Sort() public méthode

Sorts the specified items.
public Sort ( List items ) : void
items List The items.
Résultat void