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); }