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 GetShowContentLink : BaseEndpoint> { private readonly IShowContentLinkBLL _bll; public GetShowContentLink(IShowContentLinkBLL bll) => _bll = bll; public override void Configure() { Get("/Enablement/GetShowContentLink"); AllowAnonymous(); } protected override string? GetCacheKey(GetShowContentLinkParameters req, LoginDTO login) => null; protected override async Task> ExecuteAsync( GetShowContentLinkParameters req, LoginDTO login, CancellationToken ct) => await _bll.GetShowContentLinkAsync(req.ShowContentLinkId, login, ct).ConfigureAwait(false); }