Esempio n. 1
0
        internal static TemplateCollection CreateFromDataObjectCollection(Data.TemplateCollection templateCollection)
        {
            var list = new TemplateCollection();

            foreach (var template in templateCollection)
            {
                list.Add(Template.CreateFromDataObject(template));
            }

            return(list);
        }
 public TemplateCollection GetTemplates(TemplateSearchParameters searchParameters = null)
 {
     return(TemplateCollection.CreateFromDataObjectCollection(DataAccess.TemplateRepository.GetTemplates(searchParameters ?? new TemplateSearchParameters())));
 }