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(); }
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(); }
public StudentsController(IStudentSystemApi studentSystemApi, StudentsServiceClient studentsClient) { this.studentSystemApi = studentSystemApi; this.studentsClient = studentsClient; }