Exemple #1
0
        private void CreateSynonym()
        {
            Console.WriteLine(string.Format("\nCalling CreateSynonym({0}, {1}, {2}, {3})...", _createdWorkspaceId, _createdEntity, _createdValue, _createdSynonym));
            CreateSynonym synonym = new CreateSynonym()
            {
                Synonym = _createdSynonym
            };

            var result = _conversation.CreateSynonym(_createdWorkspaceId, _createdEntity, _createdValue, synonym);

            if (result != null)
            {
                Console.WriteLine(string.Format("synonym: {0}", result.SynonymText));
            }
            else
            {
                Console.WriteLine("Result is null.");
            }
        }