using EnablementBLL.ShowContentLink; using EnablementSL.Parameters.ShowContentLink; using FastEndpoints; using GB5Shared.DTO.Framework.Login; using GB5Shared.DTO.Framework.ResponseStandard; using GB5Shared.FastEndPoint; namespace EnablementSL.Endpoints.ShowContentLink; public class GetShowContentLinkList : BaseEndpoint> { private readonly IShowContentLinkBLL _bll; public GetShowContentLinkList(IShowContentLinkBLL bll) => _bll = bll; public override void Configure() { Get("/Enablement/GetShowContentLinkList"); AllowAnonymous(); } protected override string? GetCacheKey(GetShowContentLinkListParameters req, LoginDTO login) => null; protected override async Task> ExecuteAsync( GetShowContentLinkListParameters req, LoginDTO login, CancellationToken ct) => await _bll.GetShowContentLinkListAsync(req.ShowId, req.StepId, req.PageNo, req.PageSize, login, ct).ConfigureAwait(false); }