示例#1
0
        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"));
        }
示例#2
0
 public void AddCustomer(CUSTOMERS customer)
 {
     db.CUSTOMERS.Add(customer);
     db.SaveChanges();
 }
 public void AddStock(STOCKS Stock)
 {
     db.STOCKS.Add(Stock);
     db.SaveChanges();
 }