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