Refactor all code
This commit is contained in:
@@ -3,11 +3,11 @@ using PyroFetes.Models;
|
||||
|
||||
namespace PyroFetes.Specifications.Prices;
|
||||
|
||||
public sealed class GetPriceByProductIdAndSupplierIdSpec : Specification<Price>
|
||||
public sealed class GetPriceByProductIdAndSupplierIdSpec : SingleResultSpecification<Price>
|
||||
{
|
||||
public GetPriceByProductIdAndSupplierIdSpec(int? productId, int? supplierId)
|
||||
{
|
||||
Query
|
||||
.Where(p => p.ProductId == productId && p.SupplierId == supplierId);
|
||||
.Where(x => x.ProductId == productId && x.SupplierId == supplierId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user