Skip to content

Commit

Permalink
refactor(Domain): identation and sealing GetAllFavoriteProductsSpecif…
Browse files Browse the repository at this point in the history
…ication.cs
  • Loading branch information
PedroNetto404 committed Aug 2, 2024
1 parent d2dd9af commit 384a7d7
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

namespace FavoriteProducts.Domain.Resources.FavoriteProducts.Specifications;

public class GetAllFavoriteProductsSpecification : Specification<FavoriteProduct>
public sealed class GetAllFavoriteProductsSpecification : Specification<FavoriteProduct>
{
public GetAllFavoriteProductsSpecification(Guid customerId, int page, int pageSize)
public GetAllFavoriteProductsSpecification(
Guid customerId, int page, int pageSize)
{
Query.Paginate(page, pageSize);
Query.Where(x => x.CustomerId == customerId);
Query.Where(p => p.CustomerId == customerId)
.Paginate(page, pageSize);
}
}

0 comments on commit 384a7d7

Please sign in to comment.