PublishedContent - the big refactoring

This commit is contained in:
Stephan
2013-09-05 17:47:13 +02:00
parent 912716f889
commit 0415a31d0e
115 changed files with 6366 additions and 6233 deletions

View File

@@ -21,7 +21,7 @@ namespace Umbraco.Web
public static dynamic GetDynamicById(this ContextualPublishedContentCache cache, int contentId)
{
var content = cache.GetById(contentId);
return content == null ? new DynamicNull() : new DynamicPublishedContent(content).AsDynamic();
return content == null ? DynamicNull.Null : new DynamicPublishedContent(content).AsDynamic();
}
/// <summary>
@@ -34,7 +34,7 @@ namespace Umbraco.Web
public static dynamic GetDynamicSingleByXPath(this ContextualPublishedContentCache cache, string xpath, params XPathVariable[] vars)
{
var content = cache.GetSingleByXPath(xpath, vars);
return content == null ? new DynamicNull() : new DynamicPublishedContent(content).AsDynamic();
return content == null ? DynamicNull.Null : new DynamicPublishedContent(content).AsDynamic();
}
/// <summary>
@@ -47,7 +47,7 @@ namespace Umbraco.Web
public static dynamic GetDynamicSingleByXPath(this ContextualPublishedContentCache cache, XPathExpression xpath, params XPathVariable[] vars)
{
var content = cache.GetSingleByXPath(xpath, vars);
return content == null ? new DynamicNull() : new DynamicPublishedContent(content).AsDynamic();
return content == null ? DynamicNull.Null : new DynamicPublishedContent(content).AsDynamic();
}
/// <summary>