Ejemplo n.º 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));
        }
Ejemplo n.º 2
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);
        }