forked from sanchezvem/PyroFetes
Adapted Price Endpoints
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user