2024-06-06 13:26:40 +03:30
|
|
|
|
namespace Netina.Core.BaseServices.Abstracts;
|
2024-02-12 22:01:15 +03:30
|
|
|
|
|
|
|
|
|
|
public interface IPageService : IScopedDependency
|
|
|
|
|
|
{
|
2024-06-06 13:26:40 +03:30
|
|
|
|
Task<BasePageSDto> GetPageAsync(Guid? id = null, string? pageName = null, string? pageSlug = null, string? type = null, CancellationToken cancellationToken = default);
|
2024-04-01 13:05:11 +03:30
|
|
|
|
Task<List<BasePageSDto>> GetPagesAsync(CancellationToken cancellationToken = default);
|
2024-02-12 22:01:15 +03:30
|
|
|
|
Task<bool> CreatePageAsync(PageActionRequestDto entity, CancellationToken cancellationToken = default);
|
2024-06-06 13:26:40 +03:30
|
|
|
|
Task<bool> DeletePageAsync(Guid id, CancellationToken cancellationToken = default);
|
2024-08-16 18:27:54 +03:30
|
|
|
|
|
|
|
|
|
|
Task<string> CheckRedirectAsync(string oldUrl, CancellationToken cancellationToken);
|
|
|
|
|
|
Task<bool> CheckDeletedAsync(string url, CancellationToken cancellationToken);
|
2024-02-12 22:01:15 +03:30
|
|
|
|
}
|