Interface IPageService
Services to store and retrieve a Page
public interface IPageService
Methods
AddPageAsync(Page)
Adds a new page
Task<Page> AddPageAsync(Page page)
Parameters
page
Page
Returns
AddPageAsync(int, int)
Adds a new page
Task<Page> AddPageAsync(int pageId, int userId)
Parameters
Returns
DeletePageAsync(int)
Deletes a page
Task DeletePageAsync(int pageId)
Parameters
pageId
int
Returns
GetPageAsync(int)
Returns a specific page
Task<Page> GetPageAsync(int pageId)
Parameters
pageId
int
Returns
GetPageAsync(string, int)
Returns a specific page by its defined path
Task<Page> GetPageAsync(string path, int siteId)
Parameters
Returns
GetPagesAsync(int)
Returns a list of pages
Task<List<Page>> GetPagesAsync(int siteId)
Parameters
siteId
int
Returns
UpdatePageAsync(Page)
Updates a existing page
Task<Page> UpdatePageAsync(Page page)
Parameters
page
Page
Returns
UpdatePageOrderAsync(int, int, int?)
Updates order of all page modules in the given parent
Task UpdatePageOrderAsync(int siteId, int pageId, int? parentId)