Files
MetaCourse/pyrofetes/pyrofetes-backend/PyroFetes/Specifications/Prices/GetPriceByProductIdAndSupplierIdSpec.cs
T
2026-05-05 10:53:52 +02: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);
}
}