예제 #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());
 }