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
- Task<Page>
AddPageAsync(int, int)
Adds a new page
Task<Page> AddPageAsync(int pageId, int userId)
Parameters
pageId
intuserId
int
Returns
- Task<Page>
DeletePageAsync(int)
Deletes a page
Task DeletePageAsync(int pageId)
Parameters
pageId
int
Returns
- Task
GetPageAsync(int)
Returns a specific page
Task<Page> GetPageAsync(int pageId)
Parameters
pageId
int
Returns
- Task<Page>
GetPageAsync(string, int)
Returns a specific page by its defined path
Task<Page> GetPageAsync(string path, int siteId)
Parameters
path
stringsiteId
int
Returns
- Task<Page>
GetPagesAsync(int)
Returns a list of pages
Task<List<Page>> GetPagesAsync(int siteId)
Parameters
siteId
int
Returns
- Task<List<Page>>
UpdatePageAsync(Page)
Updates a existing page
Task<Page> UpdatePageAsync(Page page)
Parameters
page
Page
Returns
- Task<Page>
UpdatePageOrderAsync(int, int, int?)
Updates order of all page modules in the given parent
Task UpdatePageOrderAsync(int siteId, int pageId, int? parentId)
Parameters
siteId
intpageId
intparentId
int?
Returns
- Task