示例#1
0
 public static void CreateExchange(Exchange exchange)
 {
     if (TopicDA.ExistsExchange(exchange.Name))
     {
         throw new BusinessException("Name已经存在!");
     }
     TopicDA.CreateExchange(exchange);
 }
示例#2
0
 public static void CreateTopic(Topic topic)
 {
     if (TopicDA.ExistsTopic(topic.Name))
     {
         throw new BusinessException("Name已经存在!");
     }
     TopicDA.CreateTopic(topic);
 }
示例#3
0
 public static void UpdateTopicStatusToInValid(int sysno)
 {
     TopicDA.UpdateTopicStatusToInValid(sysno);
 }
示例#4
0
 public static IEnumerable <Topic> LoadValidTopics()
 {
     return(TopicDA.LoadValidTopics());
 }
示例#5
0
 public static Topic LoadTopicByTopicName(string name)
 {
     return(TopicDA.LoadTopicByTopicName(name));
 }
示例#6
0
 public static Topic LoadTopicBySysNo(int sysno)
 {
     return(TopicDA.LoadTopicBySysNo(sysno));
 }
示例#7
0
 public static void EditTopic(Topic topic)
 {
     TopicDA.EditTopic(topic);
 }
示例#8
0
 public static IEnumerable <Exchange> LoadExchanges()
 {
     return(TopicDA.LoadExchanges());
 }