using Oqtane.Models;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Oqtane.Services
{
///
/// Retrieve and store information.
///
public interface IAliasService
{
///
/// Get all aliases in the system
///
///
Task> GetAliasesAsync();
///
/// Get a single alias
///
/// The ID, not to be confused with a ID
///
Task GetAliasAsync(int aliasId);
///
/// Retrieve the Alias object of a URL.
///
/// The URL - todoc - is this only the root, or can it be a longer path?
/// todoc - unclear what this is for
///
Task GetAliasAsync(string url, DateTime lastSyncDate);
///
/// Save another in the DB. It must already contain all the information incl. it belongs to.
///
/// An to add.
///
Task AddAliasAsync(Alias alias);
///
/// Update an in the DB. Make sure the object is correctly filled, as it must update an existing record.
///
/// The to update.
///
Task UpdateAliasAsync(Alias alias);
///
/// Remove an from the DB.
///
/// The Alias ID, not to be confused with a Site ID.
///
Task DeleteAliasAsync(int aliasId);
}
}