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); }
public async Task <ActionResult <IEnumerable <DocumentDto> > > GetAll() { var documents = await _documentsService.GetDocumentsAsync(); return(Ok(_mapper.Map <IEnumerable <DocumentDto> >(documents))); }
public async Task <ResultResponse <IEnumerable <DocumentDto> > > GetDocuments() { return(await _documentsService.GetDocumentsAsync()); }