Exemplo n.º 1
0
        [Admin] public TM_User          user_inDomain(string domain, string user)
        {
            UserRole.Admin.demand();
            var username = "******".format(domain, user);

            return(TmWebServices.GetUser_byName(username));
        }
Exemplo n.º 2
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));
        }
Exemplo n.º 3
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()));
        }