[Admin] public TM_User user(string userNameOrId) { var user = TmWebServices.GetUser_byID(userNameOrId.toInt()); if (user.notNull()) { return(user); } return(TmWebServices.GetUser_byName(userNameOrId)); }
[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())); }