public RegistrationViewModel(PageService pageService, RolesRestClient rolesClient, GroupsRestClient groupsClient, AccountsRestClient accountsClient, StudentsRestClient studentsClient) { _pageService = pageService; _rolesClient = rolesClient; _groupsClient = groupsClient; _accountsClient = accountsClient; _studentsClient = studentsClient; Groups = HttpResponseMessageConverter.GetResult <List <dynamic> >(_groupsClient.GetGroups()); }
internal GroupsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") { RestClient = new GroupsRestClient(clientDiagnostics, pipeline, tenantID, endpoint, apiVersion); _clientDiagnostics = clientDiagnostics; _pipeline = pipeline; }