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