// GET: Manage/Products public ActionResult Products(string id) { ViewBag.Producten = Product.All(); ViewBag.Leverancier = Leverancier.All(); ViewBag.Categorien = Productcategorie.All(); if (id != null) { ViewBag.Product = Product.Find(id); ViewBag.Discount = Korting.Find(id); } return(View("~/Views/Manage/Products.cshtml")); }
public ActionResult SupplierNew() { ViewBag.Leveranciers = Leverancier.All(); return(View("~/Views/Manage/Suppliers.cshtml")); }
//Get: Manage/Suppliers/{id} public ActionResult Supplier(string id) { ViewBag.Leveranciers = Leverancier.All(); ViewBag.Leverancier = Leverancier.Find(id); return(View("~/Views/Manage/Suppliers.cshtml")); }