Files
pyrofetes-backend/PyroFetes/Specifications/Quotations/GetQuotationByIdSpec.cs
T
2026-05-24 17:22:03 +01:00

15 lines
395 B
C#

using Ardalis.Specification;
using PyroFetes.Models;
namespace PyroFetes.Specifications.Quotations;
public sealed class GetQuotationByIdSpec : SingleResultSpecification<Quotation>
{
public GetQuotationByIdSpec(int quotationId)
{
Query
.Include(x => x.QuotationProducts!)
.ThenInclude(x => x.Product)
.Where(x => x.Id == quotationId);
}
}