public UserListViewModel() { _userDataProvider = new UserDataProvider(); var userList = _userDataProvider.GetAllUsers().Select(ModelToViewModelConverter.UserInfoConverter).ToList(); Items = new ObservableCollection <UserListItemViewModel>(userList); }
public UserDetailsViewModel() { ChangeuserPermissionCommand = new RelayCommand(ChangeUserPermission); _userDataProvider = new UserDataProvider(); Users = _userDataProvider.GetAllUsers(); }
public IEnumerable <UserDto> GetAllUsers(bool showActiveUsersOnly = false) { return(_userDataProvider.GetAllUsers(showActiveUsersOnly).Select(Mapper.Map <User, UserDto>).ToList()); }