Interface IAliasService
Service to retrieve and store Alias information.
public interface IAliasService
Methods
AddAliasAsync(Alias)
Save another Alias in the DB. It must already contain all the information incl. Tenant it belongs to.
Task<Alias> AddAliasAsync(Alias alias)
Parameters
Returns
- Task<Alias>
DeleteAliasAsync(int)
Remove an Alias from the DB.
Task DeleteAliasAsync(int aliasId)
Parameters
aliasId
intThe Alias ID, not to be confused with a Site ID.
Returns
- Task
GetAliasAsync(int)
Get a single alias
Task<Alias> GetAliasAsync(int aliasId)
Parameters
Returns
- Task<Alias>
GetAliasesAsync()
Get all aliases in the system
Task<List<Alias>> GetAliasesAsync()
Returns
- Task<List<Alias>>
UpdateAliasAsync(Alias)
Update an Alias in the DB. Make sure the object is correctly filled, as it must update an existing record.
Task<Alias> UpdateAliasAsync(Alias alias)
Parameters
Returns
- Task<Alias>