Added spec for see all documents order by desc

This commit is contained in:
2026-05-27 17:23:02 +01:00
parent 6f2c60e6c0
commit 6339fbdb8c
5 changed files with 34 additions and 3 deletions
@@ -1,6 +1,7 @@
using FastEndpoints;
using PyroFetes.DTO.Quotation.Response;
using PyroFetes.Repositories;
using PyroFetes.Specifications.Quotations;
namespace PyroFetes.Endpoints.Quotations;
@@ -14,6 +15,6 @@ public class GetAllQuotationEndpoint(QuotationsRepository quotationsRepository)
public override async Task HandleAsync(CancellationToken ct)
{
await Send.OkAsync(await quotationsRepository.ProjectToListAsync<GetQuotationDto>(ct), ct);
await Send.OkAsync(await quotationsRepository.ProjectToListAsync<GetQuotationDto>(new GetAllQuotationSpec(), ct), ct);
}
}