예제 #1
0
        public UserProxy User_GetByUsername(string username)
        {
            if (!CheckClient())
            {
                return(null);
            }
            User user = UserBO.Instance.GetUser(username);

            if (user == null)
            {
                return(null);
            }
            return(ProxyConverter.GetUserProxy(user));
        }
예제 #2
0
        public UserProxy User_GetUser(int userID)
        {
            if (!CheckClient())
            {
                return(null);
            }

            User user = UserBO.Instance.GetUser(userID);

            if (user == null)
            {
                return(null);
            }
            UserProxy userProxy = ProxyConverter.GetUserProxy(user);

            return(userProxy);
        }