Exemplo n.º 1
0
 public void SetWebsiteTitle(string title)
 {
     using (var writer = websiteService.CreateWriter())
     {
         writer.Resource.Title = title;
     }
 }
Exemplo n.º 2
0
 public void SaveGlobalContent(string id, string content)
 {
     using (var writer = websiteService.CreateWriter())
     {
         writer.Resource.SetContent(id, content);
     }
 }
Exemplo n.º 3
0
        public static void UpdatePage(this IWebsiteService websiteService, string path, Action <Page> update)
        {
            if (websiteService == null)
            {
                throw new ArgumentNullException("websiteService");
            }
            if (update == null)
            {
                throw new ArgumentNullException("update");
            }

            using (var writer = websiteService.CreateWriter())
            {
                update(writer.Resource.FindPage(path));
            }
        }