Skip to content

Instantly share code, notes, and snippets.

@Alexei000
Created September 5, 2017 15:23
Show Gist options
  • Save Alexei000/b89353edce90842036e55db90abb9b09 to your computer and use it in GitHub Desktop.
Save Alexei000/b89353edce90842036e55db90abb9b09 to your computer and use it in GitHub Desktop.
Fetch list - get filtered results mapping
var serviceModel = ImportingSystemTestResultService.GetFilteredTestsResults(filters);
var viewModel = MappingService.MapListWithTotalCountModels<
ImportingSystemTestResultOutputServiceModel,
ImportingSystemTestResultViewModel,
ListWithTotalCountServiceModel<ImportingSystemTestResultOutputServiceModel>,
ListWithTotalCountViewModel<ImportingSystemTestResultViewModel>>
(serviceModel, MappingConfig.Mapper);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment