예제 #1
0
 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));
 }
예제 #2
0
 //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();
 }
예제 #4
0
 //Update
 public void Update(Customer customer)
 {
     _context.Entry(customer).State = EntityState.Modified;
     _context.SaveChanges();
 }
예제 #5
0
 //Update
 public void Update(User user)
 {
     _context.Entry(user).State = EntityState.Modified;
     _context.SaveChanges();
 }