Ejemplo n.º 1
0
 public void CheckIfCanReopenWhenReply(Conversation conversation)
 {
     if (conversation.Status == ConversationStatus.Closed)
     {
         if (!IfCanReopen(conversation))
         {
             throw SocialExceptions.OnlyOneOpenConversationAllowedForPrivateMessage();
         }
     }
 }
Ejemplo n.º 2
0
 private void CheckIfCanReopenWhenUpdate(Conversation oldEntity, Conversation newEntity)
 {
     if (oldEntity.Status == ConversationStatus.Closed && newEntity.Status != ConversationStatus.Closed)
     {
         if (!IfCanReopen(oldEntity))
         {
             throw SocialExceptions.OnlyOneOpenConversationAllowedForPrivateMessage();
         }
     }
 }