Esempio n. 1
0
        public Conversation CheckIfExists(int id)
        {
            var conversation = Repository.Find(id);

            if (conversation == null)
            {
                throw SocialExceptions.ConversationIdNotExists(id);
            }
            if (conversation.IsDeleted)
            {
                throw SocialExceptions.ConversationIdDelete(id);
            }
            return(conversation);
        }