Example #1
0
        public UserListViewModel()
        {
            _userDataProvider = new UserDataProvider();
            var userList = _userDataProvider.GetAllUsers().Select(ModelToViewModelConverter.UserInfoConverter).ToList();

            Items = new ObservableCollection <UserListItemViewModel>(userList);
        }
Example #2
0
        public UserDetailsViewModel()
        {
            ChangeuserPermissionCommand = new RelayCommand(ChangeUserPermission);

            _userDataProvider = new UserDataProvider();
            Users             = _userDataProvider.GetAllUsers();
        }
Example #3
0
 public IEnumerable <UserDto> GetAllUsers(bool showActiveUsersOnly = false)
 {
     return(_userDataProvider.GetAllUsers(showActiveUsersOnly).Select(Mapper.Map <User, UserDto>).ToList());
 }