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

16 lines
452 B
C#

using Ardalis.Specification;
using PyroFetes.Models;
namespace PyroFetes.Specifications.DeliveryNotes;
public sealed class GetDeliveryNoteByIdSpec : SingleResultSpecification<DeliveryNote>
{
public GetDeliveryNoteByIdSpec(int deliveryNoteId)
{
Query
.Include(x => x.Deliverer)
.Include(x => x.ProductDeliveries!)
.ThenInclude(x => x.Product)
.Where(x => x.Id == deliveryNoteId);
}
}