コード例 #1
0
        public void TestFindUserByUsername(string username)
        {
            Users u = userDao.FindUserByUsername(username);

            if (u != null)
            {
                Console.WriteLine($"FindByName({username}) -> {u.Username,5} | {u.Station,-10} ");
            }
            else
            {
                Console.WriteLine($"FindByName({username}) -> null");
            }
        }
コード例 #2
0
 public Users FindUserByUsername(string username)
 {
     return(usersDao.FindUserByUsername(username));
 }