public List <Product> GetAllProducts()
        {
            List <Product> result = new List <Product>();

            foreach (DataRow dr in Prodctx.GetAllProducts().Rows)
            {
                result.Add(DataRowToProduct(dr));
            }
            return(result);
        }
        public List <Artikel> GetAllArtikel()
        {
            List <Artikel> artikelen = new List <Artikel>();

            artikelen.AddRange(_ingredientcontext.GetAllIngredienten());
            artikelen.AddRange(_pizzacontext.GetAllPizzas());
            artikelen.AddRange(_productcontext.GetAllProducts());

            return(artikelen);
        }
Example #3
0
 public List <Product> GetAllProducts()
 {
     return(context.GetAllProducts());
 }