public ActionResult NyVare(OnlineWebShop.DAL.Vare vare) { var db = new ProductLogic(); if(db.insertNewProduct(vare)) { return RedirectToAction("Index"); } return View(); }
public ActionResult Edit(int? id) { var product = new ProductLogic(); return View(product.editProduct(id)); }
public ActionResult Index() { var product = new ProductLogic(); return View(product.getAll()); }
public ActionResult Index() { var db = new ProductLogic(); // List<OnlineWebShop.MODEL.Vare> alleBestillinger = db.getAll(); return View(db.getAll()); }