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
DeleteSiteAsync(int)
Deletes a site
Task DeleteSiteAsync(int siteId)
Parameters
siteId
int
Returns
GetModulesAsync(int, int)
Returns a list of modules
Task<List<Module>> GetModulesAsync(int siteId, int pageId)
Parameters
Returns
GetSiteAsync(int)
Returns a specific site
Task<Site> GetSiteAsync(int siteId)
Parameters
siteId
int
Returns
GetSitesAsync()
Returns a list of sites
Task<List<Site>> GetSitesAsync()
Returns
UpdateSiteAsync(Site)
Updates an existing site
Task<Site> UpdateSiteAsync(Site site)
Parameters
site
Site