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