Example #1
0
        private string GetDescriptionLocale(Models.CodelistValue item)
        {
            var culture     = CultureHelper.GetCurrentCulture();
            var description = item.Translations[culture]?.Description;

            if (string.IsNullOrEmpty(description))
            {
                description = item.description;
            }

            return(description);
        }
Example #2
0
        private string GetNameLocale(Models.CodelistValue item)
        {
            var culture = CultureHelper.GetCurrentCulture();
            var name    = item.Translations[culture]?.Name;

            if (string.IsNullOrEmpty(name))
            {
                name = item.name;
            }

            return(name);
        }