Adapted Price Endpoints

This commit is contained in:
Cristiano
2025-11-13 16:31:00 +01:00
parent c6d4ef2c58
commit ae834d1e3c
12 changed files with 139 additions and 106 deletions

View 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);
}
}