BCards/src/BCards.Web/Repositories/ILivePageRepository.cs
2025-07-14 23:21:25 -03:00

17 lines
703 B
C#

using BCards.Web.Models;
namespace BCards.Web.Repositories;
public interface ILivePageRepository
{
Task<LivePage?> GetByCategoryAndSlugAsync(string category, string slug);
Task<LivePage?> GetByOriginalPageIdAsync(string originalPageId);
Task<List<LivePage>> GetAllActiveAsync();
Task<LivePage> CreateAsync(LivePage livePage);
Task<LivePage> UpdateAsync(LivePage livePage);
Task<bool> DeleteAsync(string id);
Task<bool> DeleteByOriginalPageIdAsync(string originalPageId);
Task<bool> ExistsByCategoryAndSlugAsync(string category, string slug, string? excludeId = null);
Task IncrementViewAsync(string id);
Task IncrementLinkClickAsync(string id, int linkIndex);
}