Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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