using EnablementBLL.ShowSpace; using EnablementSL.Parameters.ShowSpace; using FastEndpoints; using GB5Shared.DTO.Framework.Login; using GB5Shared.DTO.Framework.ResponseStandard; using GB5Shared.FastEndPoint; namespace EnablementSL.Endpoints.ShowSpace; public class GetShowSpace : BaseEndpoint> { private readonly IShowSpaceBLL _bll; public GetShowSpace(IShowSpaceBLL bll) => _bll = bll; public override void Configure() { Get("/Enablement/GetShowSpace"); AllowAnonymous(); } protected override string? GetCacheKey(GetShowSpaceParameters req, LoginDTO login) => null; protected override async Task> ExecuteAsync( GetShowSpaceParameters req, LoginDTO login, CancellationToken ct) => await _bll.GetShowSpaceAsync(req.SpaceId, login, ct).ConfigureAwait(false); }