public IActionResult Add(AltProduct AltProduct) { db.AltProduct.Add(AltProduct); db.SaveChanges(); return(RedirectToAction("Index")); }
public IActionResult Edit(int id, AltProduct AltProduct) { db.Entry(AltProduct).State = Microsoft.EntityFrameworkCore.EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); }
public IActionResult Add(NotInInventory NotInInventory, AltProduct AltProduct) { db.NotInInventory.Add(NotInInventory); db.AltProduct.Add(AltProduct); db.SaveChanges(); return(RedirectToAction("Index")); }
public IActionResult Add(RentedFromClients RentedFromClients, AltProduct AltProduct) { db.RentedFromClients.Add(RentedFromClients); db.AltProduct.Add(AltProduct); db.SaveChanges(); return(RedirectToAction("Index")); }