Example #1
0
        protected static string LookUpTemplateType(string templateType, ItemType itemType, ISessionAwareCoreService client)
        {
            var templateTypes = client.GetListTemplateTypes(itemType);
            var found         = templateTypes != null?templateTypes.FirstOrDefault(t => t.Name == templateType) : null;

            return(found != null ? found.Title : templateType);
        }
Example #2
0
 protected static string LookUpTemplateType(string templateType, ItemType itemType, ISessionAwareCoreService client)
 {
     var templateTypes = client.GetListTemplateTypes(itemType);
     var found = templateTypes != null ? templateTypes.FirstOrDefault(t => t.Name == templateType) : null;
     return found != null ? found.Title : templateType;
 }