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 DeleteShowSchedule : BaseEndpoint> { private readonly IShowScheduleBLL _bll; public DeleteShowSchedule(IShowScheduleBLL bll) => _bll = bll; public override void Configure() { Delete("/Enablement/DeleteShowSchedule"); AllowAnonymous(); } protected override string? GetCacheKey(DeleteShowScheduleParameters req, LoginDTO login) => null; protected override async Task> ExecuteAsync( DeleteShowScheduleParameters req, LoginDTO login, CancellationToken ct) => await _bll.DeleteShowScheduleAsync(req.ShowScheduleId, login, ct).ConfigureAwait(false); }