Beispiel #1
0
        public IActionResult Add(AltProduct AltProduct)
        {
            db.AltProduct.Add(AltProduct);
            db.SaveChanges();

            return(RedirectToAction("Index"));
        }
Beispiel #2
0
        public IActionResult Edit(int id, AltProduct AltProduct)
        {
            db.Entry(AltProduct).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            db.SaveChanges();

            return(RedirectToAction("Index"));
        }
Beispiel #3
0
      public IActionResult Add(NotInInventory NotInInventory, AltProduct AltProduct)
      {
          db.NotInInventory.Add(NotInInventory);
          db.AltProduct.Add(AltProduct);
          db.SaveChanges();

          return(RedirectToAction("Index"));
      }
Beispiel #4
0
        public IActionResult Add(RentedFromClients RentedFromClients, AltProduct AltProduct)
        {
            db.RentedFromClients.Add(RentedFromClients);
            db.AltProduct.Add(AltProduct);
            db.SaveChanges();

            return(RedirectToAction("Index"));
        }