WIP - working on getting the legacy StyleSheet business logic class wrapping the new services.

This commit is contained in:
Shannon
2015-01-13 20:18:02 +11:00
parent 10aad7e048
commit c41c727e06
10 changed files with 401 additions and 338 deletions

View File

@@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Data;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using System.Xml;
@@ -61,7 +62,7 @@ namespace umbraco
public override void Render(ref XmlTree tree)
{
foreach (StyleSheet n in StyleSheet.GetAll())
foreach (StyleSheet n in StyleSheet.GetAll().Where(x => x.Id > 0))
{
XmlTreeNode xNode = XmlTreeNode.Create(this);
xNode.NodeID = n.Id.ToString(CultureInfo.InvariantCulture);

View File

@@ -42,7 +42,8 @@ namespace umbraco.presentation.webservices
string returnValue;
var stylesheet = new StyleSheet(fileID)
{
Content = fileContents, Text = fileName
Content = fileContents,
Text = fileName
};
try