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