Exemple #1
0
        public Contracts.SmallGroupClusterType GetSmallGroupClusterType(int clusterTypeID)
        {
            Contracts.SmallGroupClusterTypeMapper mapper = new Contracts.SmallGroupClusterTypeMapper();
            ClusterType type = new ClusterType(clusterTypeID);


            if (type.ClusterTypeID == -1)
            {
                throw new Arena.Services.Exceptions.ResourceNotFoundException("Invalid cluster type ID");
            }

            return(mapper.FromArena(type));
        }
        public Contracts.SmallGroupClusterType GetSmallGroupClusterType(int clusterTypeID)
        {
            Contracts.SmallGroupClusterTypeMapper mapper = new Contracts.SmallGroupClusterTypeMapper();
            ClusterType type = new ClusterType(clusterTypeID);

            if (type.ClusterTypeID == -1)
                throw new Arena.Services.Exceptions.ResourceNotFoundException("Invalid cluster type ID");

            return mapper.FromArena(type);
        }