C# Class Canvas.Helpers.Repository

Mostrar archivo Open project: Vettvangur/Canvas

Public Methods

Method Description
GetJson ( int pageId ) : string
GetObjectById ( int pageId ) : CanvasModel
GetObjectByNode ( IPublishedContent node ) : CanvasModel
GetObjectByPage ( IContent node ) : CanvasModel
SaveJson ( CanvasModel model, int pageId ) : bool

Method Details

GetJson() public static method

public static GetJson ( int pageId ) : string
pageId int
return string

GetObjectById() public static method

public static GetObjectById ( int pageId ) : CanvasModel
pageId int
return Canvas.Models.CanvasModel

GetObjectByNode() public static method

public static GetObjectByNode ( IPublishedContent node ) : CanvasModel
node IPublishedContent
return Canvas.Models.CanvasModel

GetObjectByPage() public static method

public static GetObjectByPage ( IContent node ) : CanvasModel
node IContent
return Canvas.Models.CanvasModel

SaveJson() public static method

public static SaveJson ( CanvasModel model, int pageId ) : bool
model Canvas.Models.CanvasModel
pageId int
return bool