using System;
using Umbraco.Core.Models.PublishedContent;
namespace Umbraco.Web.Models
{
///
/// Represents the model for the current Umbraco view.
///
public class ContentModel : IContentModel
{
///
/// Initializes a new instance of the class with a content.
///
///
public ContentModel(IPublishedContent content)
{
if (content == null) throw new ArgumentNullException(nameof(content));
Content = content;
}
///
/// Gets the content.
///
public IPublishedContent Content { get; }
}
}