Exemplo n.º 1
0
 public static IEnumerable<SectionControl> GetControls(WebPage page, PageTemplate template, string section)
 {
     var cons = page.Controls.Where(o => o.Section == section).Select(o => o.ToSectionControl())
         .Union(template.Controls.Where(o => o.Section == section).Select(o => o.ToSectionControl()))
         .OrderBy(o => o.Order);
     return cons;
 }
Exemplo n.º 2
0
 public ServerResponse EditTemplate(PageTemplate template)
 {
     return template.Save(o => pageProvider.UpdateTemplate(o));
 }
Exemplo n.º 3
0
 public bool UpdateTemplate(PageTemplate template)
 {
     return repoTemplate.Update(template);
 }
Exemplo n.º 4
0
 public ServerResponse AddTemplate(PageTemplate template)
 {
     return template.Save(o => pageProvider.AddTemplate(o));
 }
Exemplo n.º 5
0
 public bool AddTemplate(PageTemplate template)
 {
     return repoTemplate.Insert(template);
 }