public IUser createUser(IUser entry)
        {
            IUser user = UsersTable.Create(entry, dbConn);

            if (user == null)
            {
                return(null);
            }

            user = UsersTable.Get(user.UserName, dbConn);
            if (user == null)
            {
                return(null);
            }

            if (user.UserId == 0)
            {
                Console.WriteLine("Error userid == 0");
            }

            return(user);
        }
 public IUser getUser(string userName)
 {
     return(UsersTable.Get(userName, dbConn));
 }