public List <Product> GetAllProducts(bool includeDisabled = false)
 {
     return(!includeDisabled
         ? _database.GetAll <Product>().Where(x => x.Disabled == false).ToList()
         : _database.GetAll <Product>());
 }
Exemplo n.º 2
0
 public List <Order> GetAllOrders(bool includeDisabled = false)
 {
     return(!includeDisabled
         ? _database.GetAll <Order>().Where(x => x.Disabled == false).ToList()
         : _database.GetAll <Order>());
 }
 public List <CartItem> GetAllCartItem(int cartId)
 {
     return(_database.GetAll <CartItem>().Where(x => x.CartId == cartId).ToList());
 }
 public List <User> GetAllUser()
 {
     return(_database.GetAll <User>());
 }