U4-8709 - refactor UmbracoViewPage, RenderModel

This commit is contained in:
Stephan
2016-06-30 19:06:44 +02:00
parent d2de66ab5c
commit 9332335dff
20 changed files with 349 additions and 438 deletions

View File

@@ -0,0 +1,26 @@
using System;
using Umbraco.Core.Models.PublishedContent;
namespace Umbraco.Web.Models
{
/// <summary>
/// Represents the model for the current Umbraco view.
/// </summary>
public class ContentModel : IContentModel
{
/// <summary>
/// Initializes a new instance of the <see cref="ContentModel"/> class with a content.
/// </summary>
/// <param name="content"></param>
public ContentModel(IPublishedContent content)
{
if (content == null) throw new ArgumentNullException(nameof(content));
Content = content;
}
/// <summary>
/// Gets the content.
/// </summary>
public IPublishedContent Content { get; }
}
}