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