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

Inheritance: Controller
Show file Open project: brickpile/brickpile

Public Methods

Method 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

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

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

Edit() public method

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

Index() public method

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].
return System.Web.Mvc.ActionResult

New() public method

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.
return System.Web.Mvc.ActionResult

PagesController() public method

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

Preview() public method

Previews the specified current page.
public Preview ( IPage currentPage ) : ActionResult
currentPage IPage The current page.
return ActionResult

Publish() public method

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

Restore() public method

Restores the specified id.
public Restore ( string id ) : ActionResult
id string The id.
return ActionResult

Sort() public method

Sorts the specified items.
public Sort ( List items ) : void
items List The items.
return void