Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrebaltieri/34dc115158b942bd0923 to your computer and use it in GitHub Desktop.
Save andrebaltieri/34dc115158b942bd0923 to your computer and use it in GitHub Desktop.
public List<Product> GetProductsInStock()
{
return _context.Products.Where(ProductSpecs.GetProductsInStock()).ToList();
}
public List<Product> GetProductsOutOfStock()
{
return _context.Products.Where(ProductSpecs.GetProductsOutOfStock()).ToList();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment