Interface ISiteService
Service to store and retrieve Site entries
public interface ISiteService
Methods
AddSiteAsync(Site)
Creates a new site
Task<Site> AddSiteAsync(Site site)
Parameters
site
Site
Returns
- Task<Site>
DeleteSiteAsync(int)
Deletes a site
Task DeleteSiteAsync(int siteId)
Parameters
siteId
int
Returns
- Task
GetModulesAsync(int, int)
Returns a list of modules
Task<List<Module>> GetModulesAsync(int siteId, int pageId)
Parameters
siteId
intpageId
int
Returns
- Task<List<Module>>
GetSiteAsync(int)
Returns a specific site
Task<Site> GetSiteAsync(int siteId)
Parameters
siteId
int
Returns
- Task<Site>
GetSitesAsync()
Returns a list of sites
Task<List<Site>> GetSitesAsync()
Returns
- Task<List<Site>>
UpdateSiteAsync(Site)
Updates an existing site
Task<Site> UpdateSiteAsync(Site site)
Parameters
site
Site
Returns
- Task<Site>