public ActionResult Edit([Bind(Include = "LastName,FirstName,PhoneNumber")] Customer customer) { if (ModelState.IsValid) { db.Entry(customer).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(customer)); }
//Update public void Update(Service service) { _context.Entry(service).State = EntityState.Modified; _context.SaveChanges(); }
//Update public void Update(Scheduling scheduling) { _context.Entry(scheduling).State = EntityState.Modified; _context.SaveChanges(); }
//Update public void Update(Customer customer) { _context.Entry(customer).State = EntityState.Modified; _context.SaveChanges(); }
//Update public void Update(User user) { _context.Entry(user).State = EntityState.Modified; _context.SaveChanges(); }