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