public AddEditDictionaryPhraseViewModel() : base("", ConfigDataType.Dictionary)
 {
     ValidWords     = ConfigDataCache.GetAll <IDictata>().OrderBy(word => word.Language.Name).ThenBy(word => word.Name);
     ValidPhrases   = ConfigDataCache.GetAll <IDictataPhrase>().OrderBy(word => word.Language.Name).ThenBy(word => word.Name);
     ValidLanguages = ConfigDataCache.GetAll <ILanguage>();
     DataObject     = new DictataPhrase();
 }
        public AddEditDictionaryPhraseViewModel(string uniqueKey) : base(uniqueKey, ConfigDataType.Dictionary)
        {
            ValidWords     = ConfigDataCache.GetAll <IDictata>().OrderBy(word => word.Language.Name).ThenBy(word => word.Name);
            ValidPhrases   = ConfigDataCache.GetAll <IDictataPhrase>().OrderBy(word => word.Language.Name).ThenBy(word => word.Name);
            ValidLanguages = ConfigDataCache.GetAll <ILanguage>();
            DataObject     = new DictataPhrase();

            //apply template
            if (DataTemplate != null)
            {
                DataObject.Antonyms    = DataTemplate.Antonyms;
                DataObject.Elegance    = DataTemplate.Elegance;
                DataObject.Feminine    = DataTemplate.Feminine;
                DataObject.Language    = DataTemplate.Language;
                DataObject.Perspective = DataTemplate.Perspective;
                DataObject.Positional  = DataTemplate.Positional;
                DataObject.Quality     = DataTemplate.Quality;
                DataObject.Semantics   = DataTemplate.Semantics;
                DataObject.Severity    = DataTemplate.Severity;
                DataObject.Synonyms    = DataTemplate.Synonyms;
                DataObject.Tense       = DataTemplate.Tense;
            }
        }