using Oqtane.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Oqtane.Services
{
///
/// Services to store and retrieve a
///
public interface IPageService
{
///
/// Returns a list of pages
///
///
///
Task> GetPagesAsync(int siteId);
///
/// Returns a specific page
///
///
///
Task GetPageAsync(int pageId);
///
/// Returns a specific page by its defined path
///
///
///
///
Task GetPageAsync(string path, int siteId);
///
/// Adds a new page
///
///
///
Task AddPageAsync(Page page);
///
/// Adds a new page
///
///
///
Task AddPageAsync(int pageId, int userId);
///
/// Updates a existing page
///
///
///
Task UpdatePageAsync(Page page);
///
/// Updates order of all page modules in the given parent
///
///
///
///
///
Task UpdatePageOrderAsync(int siteId, int pageId, int? parentId);
///
/// Deletes a page
///
///
///
Task DeletePageAsync(int pageId);
}
}