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