public IActionResult Index() { HttpContext.Session.SetInt32("KlantID", 1); ArtikelRepository artikelRepo = new ArtikelRepository(); artikelRepo.Artikels = persistenceCode.loadArtikels(); return(View(artikelRepo)); }
public IActionResult Index() { Klant klant = new Klant(); HttpContext.Session.SetString("KlantNr", "1"); ArtikelRepository ArtRepo = new ArtikelRepository(); ArtRepo.Artikels = PC.loadArtikels(); return(View(ArtRepo)); }
public ArtikelenForm() { InitializeComponent(); _artikelrepository = new ArtikelRepository(new MssqlIngredientContext(), new MssqlProductContext(), new MssqlPizzaContext()); _ingredientrepository = new IngredientRepository(new MssqlIngredientContext()); _pizzarepository = new PizzaRepository(new MssqlIngredientContext(), new MssqlPizzaContext()); _productrepository = new ProductRepository(new MssqlProductContext()); ReloadList(); }
public IActionResult Index(ArtikelRepository ArtRepo) { ArtRepo.Artikels = PC.loadArtikels(); return(View(ArtRepo)); }