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