Example #1
0
        public void Init()
        {
            Winkel appie = new Winkel("appie");

            Repo.AddWinkel(appie);


            Product p1 = new Product("kaas", 240, appie);
            Product p2 = new Product("bier", 340, appie);
            Product p3 = new Product("pizza", 540, appie);
            Product p4 = new Product("coffee", 140, appie);


            Repo.AddProduct(p1);
            Repo.AddProduct(p2);
            Repo.AddProduct(p3);
            Repo.AddProduct(p4);


            StandaardWinkelPerBezorgdag standaardWinkelPerBesteldag = new StandaardWinkelPerBezorgdag()
            {
                Dag = DayOfWeek.Wednesday, Winkel = appie
            };

            Repo.AddStandaardWinkel(standaardWinkelPerBesteldag);
        }
Example #2
0
 public ActionResult AddProduct(Product product)
 {
     Repo.AddProduct(product);
     return(Ok());
 }