2023-06-28 16:33:27 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using AsbCloudApp.Services;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Repositories;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Интерфейс репозитория справок страниц
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IHelpPageRepository : ICrudRepository<HelpPageDto>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение справки по url страницы и id категории
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="urlPage"></param>
|
|
|
|
|
/// <param name="idCategory"></param>
|
|
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<HelpPageDto?> GetOrDefaultByUrlPageAndIdCategoryAsync(string urlPage,
|
|
|
|
|
int idCategory,
|
|
|
|
|
CancellationToken cancellationToken);
|
2023-07-12 18:16:36 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Проверяет наличие справки для страницы
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="urlPage"></param>
|
|
|
|
|
/// <param name="idCategory"></param>
|
|
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<bool> IsExistingAsync(string urlPage,
|
|
|
|
|
int idCategory,
|
|
|
|
|
CancellationToken cancellationToken);
|
2023-06-28 16:33:27 +05:00
|
|
|
|
}
|