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