예제 #1
0
 public static List <Model.ContentType> ToContentTypes(ContentTypeCollection contentTypes)
 {
     return(contentTypes.Cast <ContentType>().Select(ct => new Model.ContentType
     {
         Id = ct.StringId,
         Name = ct.Name
     }).ToList());
 }
예제 #2
0
 public static List<Model.ContentType> ToContentTypes(ContentTypeCollection contentTypes)
 {
     return contentTypes.Cast<ContentType>().Select(ct => new Model.ContentType
     {
         Id = ct.StringId,
         Name = ct.Name
     }).ToList();
 }