Exemplo n.º 1
0
        public void updateUser()
        {
            if (!testingUpdateUser)
            {
                return;
            }

            //Test reading a user
            UserDataGateway userGateway = new UserDataGateway();


            UserDataModel user;

            user = userGateway.read(16);

            if (user != null)
            {
                user.Display_name = "Schimbatul Ion";


                Console.WriteLine(user.Display_name);

                userGateway.update(user);
            }
            else
            {
                Console.WriteLine("User not found");
            }
        }
Exemplo n.º 2
0
        public void readUser()
        {
            if (!testingReadUser)
            {
                return;
            }

            //Test reading a user
            UserDataGateway userGateway = new UserDataGateway();

            UserDataModel user;

            user = userGateway.read(16);


            Console.WriteLine(user.Display_name);
        }