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

13 lines
381 B
C#

using Ardalis.Specification;
using PyroFetes.Models;
namespace PyroFetes.Specifications.Prices;
public sealed class GetPriceByProductIdAndSupplierIdSpec : SingleResultSpecification<Price>
{
public GetPriceByProductIdAndSupplierIdSpec(int? productId, int? supplierId)
{
Query
.Where(x => x.ProductId == productId && x.SupplierId == supplierId);
}
}