Files
PyroFetes-Sujet1/PyroFetes/Specifications/Quotations/GetQuotationByIdWithProductsSpec.cs
T
2026-05-24 17:22:03 +01:00

15 lines
415 B
C#

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