public string UserIdToUsername(int userId)
        {
            Models.Database db    = new Models.Database();
            string          query = "SELECT Username FROM UserAccount WHERE UserId = '" + userId + "'";

            return(db.UserIdToUsername(query));
        }
Exemple #2
0
        public string GetUsername(int userId)
        {
            string query = "SELECT Username FROM UserAccount WHERE UserId = " + userId;

            Models.Database db = new Models.Database();
            db.Connect();
            return(db.UserIdToUsername(query));
        }