public virtual void EditStyle(Site site, string themeName, string fileName, string body) { var theme = new Theme(site, themeName); var themeFile = new StyleFile(theme, fileName); themeFile.Save(body); }
public virtual void CreateStyle(Site site, string themeName, string fileName, string body) { var theme = new Theme(site, themeName); var themeFile = new StyleFile(theme, fileName); if (themeFile.Exists()) { throw new ItemAlreadyExistsException(); } themeFile.Save(body); }