Ejemplo n.º 1
0
        private string ValidateSynonyms(string str)
        {
            if (!WordsHelper.IsEmpty(str))
            {
                return("Please enter words");
            }

            if (!WordsHelper.ContainsWords(str))
            {
                return($"You should have at least two words separated by {WordsHelper.WordsSeparator}");
            }

            return(string.Empty);
        }