forked from sanchezvem/pyrofetes-backend
15 lines
415 B
C#
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);
|
|
}
|
|
} |