using EnablementBLL.ShowRequestLog; using EnablementSL.Parameters.ShowRequestLog; using FastEndpoints; using GB5Shared.DTO.Framework.Login; using GB5Shared.DTO.Framework.ResponseStandard; using GB5Shared.FastEndPoint; namespace EnablementSL.Endpoints.ShowRequestLog; public class GetShowRequestLogList : BaseEndpoint> { private readonly IShowRequestLogBLL _bll; public GetShowRequestLogList(IShowRequestLogBLL bll) => _bll = bll; public override void Configure() { Get("/Enablement/GetShowRequestLogList"); AllowAnonymous(); } protected override string? GetCacheKey(GetShowRequestLogListParameters req, LoginDTO login) => null; protected override async Task> ExecuteAsync( GetShowRequestLogListParameters req, LoginDTO login, CancellationToken ct) => await _bll.GetShowRequestLogListAsync( req.UserId, req.TriggerType, req.FromDate, req.ToDate, req.IsFrontendResolved, req.PageNo, req.PageSize, login, ct).ConfigureAwait(false); }