コード例 #1
0
        public async Task <IEnumerable <GetAllAssetsResponseDto> > Handle(GetAssetsQuery command, CancellationToken cancellationToken)
        {
            var queryResult = await _assetsRepository.GetAssetsPerPage();

            var response = _mapper.Map <IEnumerable <Assets>, IEnumerable <GetAllAssetsResponseDto> >(queryResult);

            return(response);
        }