Exemplo n.º 1
0
 public List <Product> Products(int id) =>
 _repository.GetAll()
 .Include(p => p.Brand)
 .Include(p => p.Categories)
 .Where(p => _productRepositories.GetGetCategoryIds(id)
        .Contains(p.CategoriesId))
 .ToList();