Пример #1
0
        public async Task <FileDto> GetToExcelFile()
        {
            var comments = await _commentManager.QueryComments().ToListAsync();

            var commentListDtos = ObjectMapper.Map <List <CommentListDto> >(comments);

            return(_commentListExcelExporter.ExportToExcelFile(commentListDtos));
        }