예제 #1
0
        public AuthorizationViewModel(PageService pageService, UserService userService, AccountsRestClient accountsClient)
        {
            _pageService = pageService;
            _userService = userService;

            _accountsClient = accountsClient;
        }
예제 #2
0
        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());
        }