public ActionResult Edit(int id, CUSTOMERS customer) { RetaDbEntities db = new RetaDbEntities(); var mus = db.CUSTOMERS.Find(id); mus.SURNAME = customer.SURNAME; db.SaveChanges(); return(RedirectToAction("index")); }
public void AddCustomer(CUSTOMERS customer) { db.CUSTOMERS.Add(customer); db.SaveChanges(); }
public void AddStock(STOCKS Stock) { db.STOCKS.Add(Stock); db.SaveChanges(); }