public UserViewModel(IUserAppService appService,
IRoleAppService roleAppService,
IAccountService accountService,
IProfileAppService profileAppService,
IPermissionAppService permissionAppService)
{
IsAdvancedFilter = false;
input = new GetUsersInput
{
Filter = "",
MaxResultCount = AppConsts.DefaultPageSize,
SkipCount = 0
};
roleList = new ObservableCollection<RoleListModel>();
this.appService = appService;
this.roleAppService = roleAppService;
this.accountService = accountService;
this.profileAppService = profileAppService;
this.permissionAppService = permissionAppService;
AdvancedCommand = new DelegateCommand(() => { IsAdvancedFilter = !IsAdvancedFilter; });
SelectedCommand = new DelegateCommand(SelectedPermission);
SearchCommand = new DelegateCommand(SearchUser);
ResetCommand = new DelegateCommand(Reset);
UpdateTitle();
dataPager.OnPageIndexChangedEventhandler += UsersOnPageIndexChangedEventhandler;
}