Esempio n. 1
0
        public async Task <IEnumerable <PropertyType> > GetStandardProperties([FromBody] ISet <int> standardArtifactTypeIds)
        {
            await _privilegesManager.Demand(Session.UserId, InstanceAdminPrivileges.AccessAllProjectData);

            if (standardArtifactTypeIds == null)
            {
                throw new BadRequestException(ErrorMessages.ModelIsEmpty);
            }

            return(await _artifactRepository.GetStandardProperties(standardArtifactTypeIds));
        }