Exposes the IDocument property as CurrentDocument on the Model for MVC pages.

This commit is contained in:
Shannon Deminick
2012-09-13 12:28:08 +07:00
parent 458f1d3b8f
commit 1c040912f6

View File

@@ -5,10 +5,14 @@ using umbraco.interfaces;
namespace Umbraco.Web.Mvc
{
/// <summary>
/// Represents the model for the current rendering page in Umbraco
/// </summary>
public class RenderModel
{
//public XmlNode CurrentXmlNode { get; set; }
internal IDocument CurrentDocument { get; set; }
//internal page UmbracoPage { get; set; }
//NOTE: the model isn't just IDocument because in the future we will most likely want to add other properties here,
//or we will want to add extensions.
public IDocument CurrentDocument { get; set; }
}
}