using EnablementBLL.ShowChannel; using EnablementSL.Parameters.ShowChannel; using FastEndpoints; using GB5Shared.DTO.Framework.Login; using GB5Shared.DTO.Framework.ResponseStandard; using GB5Shared.FastEndPoint; namespace EnablementSL.Endpoints.ShowChannel; public class GetShowChannel : BaseEndpoint> { private readonly IShowChannelBLL _bll; public GetShowChannel(IShowChannelBLL bll) => _bll = bll; public override void Configure() { Get("/Enablement/GetShowChannel"); AllowAnonymous(); } protected override string? GetCacheKey(GetShowChannelParameters req, LoginDTO login) => null; protected override async Task> ExecuteAsync( GetShowChannelParameters req, LoginDTO login, CancellationToken ct) => await _bll.GetShowChannelAsync(req.ChannelId, login, ct).ConfigureAwait(false); }