private async void Initialize() { IsBusy = true; AvailableRoleTypes = await _roleTypeDataService.GetAllRoleTypes(); IsBusy = false; }
private async void Refresh() { if (_associatedGroup != null && _associatedUser != null) { var userGroup = await _userGroupDataService.GetUserGroup(_associatedUser.Id, _associatedGroup.Id); var roleTypes = await _roleTypeDataService.GetAllRoleTypes(); if (userGroup != null) { roleTypes.Single(r => r.Id == userGroup.RoleTypeId).IsChecked = true; } UserPermissions = roleTypes.ToObservableCollection(); } }