Ejemplo n.º 1
0
        public ActionResult Edit(int id, PersonViewModel model)
        {
            if (ModelState.IsValid)
            {
                model.PersonId = id;
                var command = ViewModelFactory.CreateCommand(model, CommandType.Update);
                command.Execute();
            }

            return(RedirectToAction("Index", "Home"));
        }