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