Skip to content

Commit

Permalink
Merge pull request #74 from Livl-Corporation/tg/fix/categories
Browse files Browse the repository at this point in the history
fix(Category): Return child categories when get categories list
  • Loading branch information
jvondermarck authored Jun 4, 2024
2 parents d80d682 + ac8c0e0 commit 53d9396
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LivlReviews.Infra/Repositories/EntityRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public List<T> GetAll()
return DbSet.ToList();
}

public List<T> GetBy(Expression<Func<T, bool>> predicate)
public List<T> GetBy(Func<T, bool> predicate)
{
return DbSet.Where(predicate).ToList();
}
Expand Down
2 changes: 1 addition & 1 deletion LivlReviews.Infra/Repositories/Interfaces/IRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public interface IRepository<T> where T : class
{
T? GetById(int id);
List<T> GetAll();
List<T> GetBy(Expression<Func<T, bool>> predicate);
List<T> GetBy(Func<T, bool> predicate);
T GetByFirstOrDefault(Func<T, bool> predicate);
public List<T> GetAndInclude(Expression<Func<T, bool>> predicate, string[] include);
T Add(T entity);
Expand Down

0 comments on commit 53d9396

Please sign in to comment.