C# 클래스 BrickPile.UI.Areas.UI.Controllers.PagesController

상속: Controller
파일 보기 프로젝트 열기: brickpile/brickpile

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

Discard() 공개 메소드

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

Edit() 공개 메소드

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

Index() 공개 메소드

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

New() 공개 메소드

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

PagesController() 공개 메소드

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

Preview() 공개 메소드

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

Publish() 공개 메소드

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

Restore() 공개 메소드

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

Sort() 공개 메소드

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