public async Task <IActionResult> IndexAsync(AppUserSearchVm appUserSearchVm) { FixSearchVm(appUserSearchVm); var result = await _appUserListService.ListAsync(appUserSearchVm); return(View(result)); }
public async Task <ResultModel <ListResultVm <AppUserListDto> > > ListAsync(AppUserSearchVm appUserSearchVm) { ValidationSearchVm(appUserSearchVm); if (HasError) { return(CreateInvalidResult <ListResultVm <AppUserListDto> >()); } var result = await _appUserListService .ListAsync(appUserSearchVm); return(CreateSuccessResult(result)); }