13 lines
264 B
C#
13 lines
264 B
C#
using Ardalis.Specification;
|
|
using PyroFetes.Models;
|
|
|
|
namespace PyroFetes.Specifications.Users;
|
|
|
|
public sealed class GetUserByIdSpec : Specification<User>
|
|
{
|
|
public GetUserByIdSpec(int userId)
|
|
{
|
|
Query
|
|
.Where(x => x.Id == userId);
|
|
}
|
|
} |