public Player NewPlayerFlow(string initialUserId) { var profileInfo = _localStorage.GetProfileInfo(); var initialUser = _usertypeRepository.GetUserType(initialUserId); if (initialUser == null) { return(null); } var coachId = initialUser.CoachId; var player = _userCreator.CreatePlayer(initialUserId, profileInfo, coachId); _localStorage.SetCurrentUser(player); return(player); }