forked from sanchezvem/PyroFetes
Adapted Price Endpoints
This commit is contained in:
13
PyroFetes/Specifications/Products/GetProductByIdSpec.cs
Normal file
13
PyroFetes/Specifications/Products/GetProductByIdSpec.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Ardalis.Specification;
|
||||
using PyroFetes.Models;
|
||||
|
||||
namespace PyroFetes.Specifications.Products;
|
||||
|
||||
public sealed class GetProductByIdSpec : Specification<Product>
|
||||
{
|
||||
public GetProductByIdSpec(int? productId)
|
||||
{
|
||||
Query
|
||||
.Where(p => p.Id == productId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user