Пример #1
0
        public async Task <PartialViewResult> GetAllWithFilter(GetAllUserWithFilterViewModel input)
        {
            var filter       = ObjectMapper.Map <UserInfoDto>(input);
            var filterResult = await _userAppService.GetAllUserAsync(new GetAllUserInput()
            {
                Filter         = filter,
                MaxResultCount = input.MaxResultCount,
                SkipCount      = input.SkipCount
            });

            return(PartialView("User/GetAllUserPartial/_UserTable", new IndexViewModel()
            {
                Users = filterResult,
                CurrentUserFilter = input
            }));
        }
Пример #2
0
        public async Task <PartialViewResult> UserPromoteFilter(GetAllUserWithFilterViewModel input)
        {
            var filter = ObjectMapper.Map <UserInfoDto>(input);

            // only find TempMember
            filter.Type = UserType.TempMember;
            var res = await _userAppService.GetAllUserAsync(new GetAllUserInput()
            {
                Filter         = filter,
                MaxResultCount = input.MaxResultCount,
                SkipCount      = input.SkipCount
            });

            return(PartialView("User/UserPromotePartial/_UserPromote", new IndexViewModel()
            {
                CurrentUserFilter = input,
                Users = res
            }));
        }