Files
PyroFetes-Sujet1/PyroFetes/Specifications/Prices/GetPriceByProductIdAndSupplierIdSpec.cs
2025-11-13 16:31:00 +01:00

13 lines
369 B
C#

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