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