Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }