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
- Task<UrlMapping>
DeleteUrlMappingAsync(int)
Delete a UrlMapping in the database.
Task DeleteUrlMappingAsync(int urlMappingId)
Parameters
urlMappingId
intID-reference of a UrlMapping
Returns
- Task
GetUrlMappingAsync(int)
Get one specific UrlMapping
Task<UrlMapping> GetUrlMappingAsync(int urlMappingId)
Parameters
urlMappingId
intID-reference of a UrlMapping
Returns
- Task<UrlMapping>
GetUrlMappingAsync(int, string)
Get one specific UrlMapping
Task<UrlMapping> GetUrlMappingAsync(int siteId, string url)
Parameters
siteId
intID-reference of a Site
url
stringA url
Returns
- Task<UrlMapping>
GetUrlMappingsAsync(int, bool)
Get all UrlMappings of this Site.
Task<List<UrlMapping>> GetUrlMappingsAsync(int siteId, bool isMapped)
Parameters
siteId
intID-reference of a Site
isMapped
bool
Returns
- Task<List<UrlMapping>>
UpdateUrlMappingAsync(UrlMapping)
Update a UrlMapping in the database.
Task<UrlMapping> UpdateUrlMappingAsync(UrlMapping urlMapping)
Parameters
urlMapping
UrlMapping
Returns
- Task<UrlMapping>