Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- datacontext.customers.Attach(customer);
- public ActionResult MySaveAction(int id, FormCollection form)
- {
- Customer updateCustomer = _Repository.GetCustomer(id);
- TryUpdateModel(updateCustomer, "Customer", form);
- _Repository.Save(updateCustomer);
- }
Add Comment
Please, Sign In to add comment