using EnablementBLL.ShowChannel; using EnablementSL.Parameters.ShowChannel; using FastEndpoints; using GB5Shared.DTO.Framework.Login; using GB5Shared.DTO.Framework.ResponseStandard; using GB5Shared.FastEndPoint; namespace EnablementSL.Endpoints.ShowChannel; public class DeleteShowChannel : BaseEndpoint> { private readonly IShowChannelBLL _bll; public DeleteShowChannel(IShowChannelBLL bll) => _bll = bll; public override void Configure() { Delete("/Enablement/DeleteShowChannel"); AllowAnonymous(); } protected override string? GetCacheKey(DeleteShowChannelParameters req, LoginDTO login) => null; protected override async Task> ExecuteAsync( DeleteShowChannelParameters req, LoginDTO login, CancellationToken ct) => await _bll.DeleteShowChannelAsync(req.ChannelId, login, ct).ConfigureAwait(false); }