Пример #1
0
        public async Task <DocumentListingDto> Fetch()
        {
            var documents = await documentRepository.All();

            return(new DocumentListingDto {
                Documents = documents,
            });
        }
        public async Task <PresentationListingDto> Fetch()
        {
            var documents = await documentRepository.All();

            var presentations = await presentationRepository.All();

            return(new PresentationListingDto {
                Documents = documents, Presentations = presentations
            });
        }