forked from sanchezvem/PyroFetes
Adapted Deliverer endpoints with repository spec and automapper
This commit is contained in:
13
PyroFetes/Specifications/Deliverers/GetDelivererByIdSpec.cs
Normal file
13
PyroFetes/Specifications/Deliverers/GetDelivererByIdSpec.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user