public static string GetLocalizedName(this PostCategorySchema source)
        {
            var name =
                source.Name;
            var localizedName = LocalizationUtils
                                .GetLocalized(GetResourceKey(source));

            return(!string.IsNullOrEmpty(localizedName)
                ? localizedName
                : name);
        }
        public static string GetLocalizedName(this PostCategorySchema targetSchema)
        {
            string name =
                targetSchema.Name;
            string localizedName =
                LocalizationUtils.GetLocalized(GetResourceKey(targetSchema));

            return(!string.IsNullOrEmpty(localizedName)
                ? localizedName
                : name);
        }
 public static string[] GetLocalizedNames(this PostCategorySchema source)
 {
     return(GetLocalizedNames());
 }
 public static string GetResourceKey(this PostCategorySchema source, int id)
 {
     return($"Schema-{source.GetType().Name}-{id}");
 }
 public static string[] GetLocalizedNames(this PostCategorySchema targetSchema)
 {
     return(GetLocalizedNames());
 }
 public static string GetResourceKey(this PostCategorySchema targetSchema)
 {
     return($"Schema-{targetSchema.GetType().Name}-{targetSchema.Id}");
 }