public object GetContentTypeAliasByGuid([ModelBinder] Guid guid)
 {
     return(new
     {
         alias = _contentTypeService.GetAliasByGuid(guid)
     });
 }
예제 #2
0
 private string GetContentTypeAliasByGuid(Guid contentTypeGuid)
 {
     return(_runtimeCache.GetCacheItem(
                string.Concat("Bento.Core.Services.EmbeddedContentService.GetContentTypeAliasByGuid_", contentTypeGuid),
                () => _contentTypeService.GetAliasByGuid(contentTypeGuid)));
 }