Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            CoursesClient CC = new CoursesClient("NetTcpBinding_ICourses");

            for (int i = 0; i < 1; i++)
            {
                Console.WriteLine("Enter record:");
                CC.AddToCourses(new Course()
                {
                    CourseId = int.Parse(Console.ReadLine()), CourseName = Console.ReadLine()
                });
            }

            GetCourses(CC);
            CC.Close();

            CC = new CoursesClient("NetTcpBinding_ICourses");

            for (int i = 0; i < 1; i++)
            {
                Console.WriteLine("Enter record:");
                CC.AddToCourses(new Course()
                {
                    CourseId = int.Parse(Console.ReadLine()), CourseName = Console.ReadLine()
                });
            }

            GetCourses(CC);

            Console.ReadLine();
        }