C# Class Sdl.Web.Mvc.Controllers.PageController

Inheritance: BaseController
显示文件 Open project: sdl/dxa-web-application-dotnet

Public Methods

Method Description
Blank ( ) : System.Web.Mvc.ActionResult
Resolve ( string itemId, int localizationId, string defaultItemId = null, string defaultPath = null ) : System.Web.Mvc.ActionResult

Resolve a item ID into a url and redirect to that URL

ServerError ( ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
EnrichEmbeddedModels ( PageModel model ) : void

Enriches all the Region/Entity Models embedded in the given Page Model.

Used by FormatDataAttribute to get all embedded Models enriched without rendering any Views.

NotFound ( ) : System.Web.Mvc.ActionResult
Page ( string pageUrl ) : System.Web.Mvc.ActionResult

Method Details

Blank() public method

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

Resolve() public method

Resolve a item ID into a url and redirect to that URL
public Resolve ( string itemId, int localizationId, string defaultItemId = null, string defaultPath = null ) : System.Web.Mvc.ActionResult
itemId string The ID of the Page to resolve.
localizationId int The context Localization in which to resolve.
defaultItemId string Optional ID of a Component to resolve in case the Page cannot be resolved.
defaultPath string
return System.Web.Mvc.ActionResult

ServerError() public method

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