Skip to content

Instantly share code, notes, and snippets.

@andrebaltieri
Created July 7, 2015 22:30
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/b286b534e9f17e29cd4a to your computer and use it in GitHub Desktop.
Save andrebaltieri/b286b534e9f17e29cd4a to your computer and use it in GitHub Desktop.
namespace ModernWebStore.Domain.Specs
{
public static class ProductSpecs
{
public static Expression<Func<Product, bool>> GetProductsInStock()
{
return x => x.QuantityOnHand > 0;
}
public static Expression<Func<Product, bool>> GetProductsOutOfStock()
{
return x => x.QuantityOnHand == 0;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment