using Ardalis.Specification;
using BookHive.Models;

namespace BookHive.Specifications.Authors;

public class GetAuthorByIdSpec : SingleResultSpecification<Author>
{
    public GetAuthorByIdSpec(int authorId)
    {
        Query
            .Where(x => x.Id == authorId);
    }
}