public List <Product> GetAllProducts(bool includeDisabled = false) { return(!includeDisabled ? _database.GetAll <Product>().Where(x => x.Disabled == false).ToList() : _database.GetAll <Product>()); }
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>()); }