public ActionResult PerformEdit(CustomerViewModel customer) { var viewModel = new EditCustomerViewModel() { Customer = customer }; return(Json(new { Success = ModelState.IsValid && viewModel.UpdateCustomer(), DisplayName = $"{customer}" })); }
public ActionResult FinishCustomerEdit(EditCustomerViewModel myViewModel) { myViewModel.UpdateCustomer(); return(RedirectToAction("ViewCustomerData")); }