using EnablementBLL.ShowRun; using EnablementSL.Parameters.ShowRun; using FastEndpoints; using GB5Shared.DTO.Framework.Login; using GB5Shared.DTO.Framework.ResponseStandard; using GB5Shared.FastEndPoint; namespace EnablementSL.Endpoints.ShowRun; public class GetShowRunHistory : BaseEndpoint> { private readonly IShowRunBLL _bll; public GetShowRunHistory(IShowRunBLL bll) => _bll = bll; public override void Configure() { Get("/Enablement/GetShowRunHistory"); AllowAnonymous(); } protected override string? GetCacheKey(GetShowRunHistoryParameters req, LoginDTO login) => null; protected override async Task> ExecuteAsync( GetShowRunHistoryParameters req, LoginDTO login, CancellationToken ct) => await _bll.GetHistoryAsync(req.UserId, req.ShowId, req.PageNo, req.PageSize, login, ct).ConfigureAwait(false); }