Adapted Deliverer endpoints with repository spec and automapper

This commit is contained in:
Cristiano
2025-11-13 15:26:22 +01:00
parent 60a7c059b4
commit c6d4ef2c58
7 changed files with 38 additions and 23 deletions

View File

@@ -0,0 +1,13 @@
using Ardalis.Specification;
using PyroFetes.Models;
namespace PyroFetes.Specifications.Deliverers;
public sealed class GetDelivererByIdSpec : Specification<Deliverer>
{
public GetDelivererByIdSpec(int delivererId)
{
Query
.Where(x => x.Id == delivererId);
}
}