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