コード例 #1
0
        public User GetUserByUserName(string userName)
        {
            var user = _userDb.GetUserByUserName(userName);

            if (user == null)
            {
                _userDb.AddNewUser(userName);
            }
            user = _userDb.GetUserByUserName(userName);
            return(user);
        }