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