コード例 #1
0
 private ActionResult DoEdit(Customer customer)
 {
     var viewModel = new EditCustomerViewModel(customer);
     return View("Edit", viewModel);
 }
コード例 #2
0
 public ActionResult Save(EditCustomerViewModel viewModel)
 {
     _repository.TrySaveUpdate(new CustomerUpdater(viewModel));
     return RedirectToAction("Index");
 }