コード例 #1
0
        static void Main(string[] args)
        {
            StudentsServiceClient client = new StudentsServiceClient();

            var results = client.GetStudentsByCountry("Colombia");

            foreach (Student student in results)
            {
                Console.WriteLine(String.Format("{0} {1} - {2}", student.FirstName, student.LastName, student.EmailAddr));
            }

            Console.ReadKey();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            StudentsServiceClient client = new StudentsServiceClient();

            System.Console.WriteLine("Student's full name...");
            string FullName = System.Console.ReadLine();

            var result = client.AddNewStudent(new Student()
            {
                FullName = FullName
            });

            Console.WriteLine(result);

            Console.ReadKey();
        }
コード例 #3
0
 public StudentsController(IStudentSystemApi studentSystemApi, StudentsServiceClient studentsClient)
 {
     this.studentSystemApi = studentSystemApi;
     this.studentsClient   = studentsClient;
 }