Пример #1
0
        // 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"));
        }
Пример #2
0
 public ActionResult SupplierNew()
 {
     ViewBag.Leveranciers = Leverancier.All();
     return(View("~/Views/Manage/Suppliers.cshtml"));
 }
Пример #3
0
 //Get: Manage/Suppliers/{id}
 public ActionResult Supplier(string id)
 {
     ViewBag.Leveranciers = Leverancier.All();
     ViewBag.Leverancier  = Leverancier.Find(id);
     return(View("~/Views/Manage/Suppliers.cshtml"));
 }