Пример #1
0
        public async Task <List <Artifact> > GetExpandedTreeToArtifactAsync(int projectId, int expandedToArtifactId, bool includeChildren = false)
        {
            if (expandedToArtifactId < 1)
            {
                throw new BadRequestException($"Parameter {nameof(expandedToArtifactId)} must be greater than 0.", ErrorCodes.OutOfRangeParameter);
            }

            return(await _artifactRepository.GetExpandedTreeToArtifactAsync(projectId, expandedToArtifactId, includeChildren, Session.UserId));
        }