public ActionResult Create(CreateUser createUser) { _commandCoordinator.Handle(createUser); return RedirectToAction("Show",new {userName=createUser.Name} ); }
public void Handle(CreateUser createUser) { var user = _factory.Create(createUser.Id); user.Create(createUser.Name); user.SetPassword(createUser.Password); }