示例#1
0
        [Admin] public TM_User                      user(string userNameOrId)
        {
            var user = TmWebServices.GetUser_byID(userNameOrId.toInt());

            if (user.notNull())
            {
                return(user);
            }
            return(TmWebServices.GetUser_byName(userNameOrId));
        }
示例#2
0
        [Admin] public TM_User                      user(string userNameOrId)
        {
            var user = TmWebServices.GetUser_byName(userNameOrId);              // need to this one first in case the username is an int

            if (user.notNull())
            {
                return(user);
            }
            return(TmWebServices.GetUser_byID(userNameOrId.toInt()));
        }