forked from sanchezvem/PyroFetes
14 lines
319 B
C#
14 lines
319 B
C#
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)
|
|
.Include(p => p.Prices);
|
|
}
|
|
} |