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); }
public ActionResult AddProduct(Product product) { Repo.AddProduct(product); return(Ok()); }