Interface IUrlMappingService
Service to manage UrlMappings on a Site
public interface IUrlMappingService
Methods
AddUrlMappingAsync(UrlMapping)
Add / save a new UrlMapping to the database.
Task<UrlMapping> AddUrlMappingAsync(UrlMapping urlMapping)
Parameters
urlMapping
UrlMapping
Returns
DeleteUrlMappingAsync(int)
Delete a UrlMapping in the database.
Task DeleteUrlMappingAsync(int urlMappingId)
Parameters
urlMappingId
intID-reference of a UrlMapping
Returns
GetUrlMappingAsync(int)
Get one specific UrlMapping
Task<UrlMapping> GetUrlMappingAsync(int urlMappingId)
Parameters
urlMappingId
intID-reference of a UrlMapping
Returns
GetUrlMappingAsync(int, string)
Get one specific UrlMapping
Task<UrlMapping> GetUrlMappingAsync(int siteId, string url)
Parameters
Returns
GetUrlMappingsAsync(int, bool)
Get all UrlMappings of this Site.
Task<List<UrlMapping>> GetUrlMappingsAsync(int siteId, bool isMapped)
Parameters
Returns
UpdateUrlMappingAsync(UrlMapping)
Update a UrlMapping in the database.
Task<UrlMapping> UpdateUrlMappingAsync(UrlMapping urlMapping)
Parameters
urlMapping
UrlMapping