public async Task <PagedResult <SearchPersonResultPrj> > SearchPerson(SearchPersonFilterPrj model, CrossContext ctx, CancellationToken token) { var filter = _mapper.Map <SearchPersonFilter>(model); var query = new SearchPersonFilterQuery(filter); var result = await _processor.Query(ctx, token, query); return(new PagedResult <SearchPersonResultPrj>(result.PageSize, result.PageNumber, result.TotalCount, _mapper.Map <List <SearchPersonResultPrj> >(result.Items))); }