コード例 #1
0
        public async Task <IActionResult> Get(string projectId, string branchName)
        {
            var documents = await _documentsService.GetDocumentsAsync(projectId, branchName);

            if (documents == null)
            {
                return(NotFound());
            }

            return(new ObjectResult(documents));
        }
        public async Task <IList <BaseDocumentDto> > Get(string projectId, string branchName)
        {
            var document = await _documentsService.GetDocumentsAsync(projectId, branchName);

            return(document);
        }
コード例 #3
0
        public async Task <ActionResult <IEnumerable <DocumentDto> > > GetAll()
        {
            var documents = await _documentsService.GetDocumentsAsync();

            return(Ok(_mapper.Map <IEnumerable <DocumentDto> >(documents)));
        }
コード例 #4
0
 public async Task <ResultResponse <IEnumerable <DocumentDto> > > GetDocuments()
 {
     return(await _documentsService.GetDocumentsAsync());
 }