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

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

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

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

            return(RedirectToAction("Index"));
        }