public void SetWebsiteTitle(string title) { using (var writer = websiteService.CreateWriter()) { writer.Resource.Title = title; } }
public void SaveGlobalContent(string id, string content) { using (var writer = websiteService.CreateWriter()) { writer.Resource.SetContent(id, content); } }
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)); } }