Esempio n. 1
0
        public static void UpdateStudent(ServiceReference1.Student student)
        {
            var update = db.UpdateStudent(student);

            if (update)
            {
                Console.WriteLine("true");
            }
            else
            {
                Console.WriteLine("false");
            }
        }
Esempio n. 2
0
        public static void addStudent(ServiceReference1.Student student)
        {
            var add = db.AddNewStudent(student);

            if (add)
            {
                Console.WriteLine("true");
            }
            else
            {
                Console.WriteLine("false");
            }
        }