public static string GetPrevalues(this IContent content, IDataTypeService ds, string alias)
        {
            var ids  = content.GetValue <string>(alias).Split(',').ToList();
            var list = ids.Select(x => ds.GetPreValueAsString(int.Parse(x)));

            return(string.Join(",", list));
        }
Esempio n. 2
0
 public static string GetPreValueByIntValue(IDataTypeService service, int value)
 {
     return(service.GetPreValueAsString(value));
 }