first commit
This commit is contained in:
13
BookHive/Specifications/Members/GetMemberByIdSpec.cs
Normal file
13
BookHive/Specifications/Members/GetMemberByIdSpec.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Ardalis.Specification;
|
||||
using BookHive.Models;
|
||||
|
||||
namespace BookHive.Specifications.Members;
|
||||
|
||||
public class GetMemberByIdSpec : SingleResultSpecification<Member>
|
||||
{
|
||||
public GetMemberByIdSpec(int memberId)
|
||||
{
|
||||
Query
|
||||
.Where(x => x.Id == memberId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user