public ProfileUser Create(CreateProfileUserCommand command) { var profile = new ProfileUser(command.Profile); profile.Register(); _repository.Create(profile); if (Commit()) { return(profile); } return(null); }