public ApiClient() { QuestionsService = new QuestionsClient("https://localhost:44353/", httpClient); QuizService = new QuizClient("https://localhost:44353/", httpClient); StudentService = new StudentsClient("https://localhost:44353/", httpClient); GradesService = new GradesClient("https://localhost:44353/", httpClient); }
static void Main(string[] args) { var client = new StudentsClient(); var observableStudents = client.GetAllAsync().Result; foreach (var student in observableStudents) { Console.WriteLine(student.ToJson()); } }
public StudentController(StudentsClient client) => this.client = client;