2021-02-18 11:06:02 +01:00
|
|
|
using Umbraco.Cms.Core.Models.PublishedContent;
|
2016-06-30 19:06:44 +02:00
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
namespace Umbraco.Cms.Core.Models
|
2016-06-30 19:06:44 +02:00
|
|
|
{
|
|
|
|
|
public class ContentModel<TContent> : ContentModel
|
|
|
|
|
where TContent : IPublishedContent
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="ContentModel{TContent}"/> class with a content.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ContentModel(TContent content)
|
2021-02-16 18:02:05 +11:00
|
|
|
: base(content) => Content = content;
|
2016-06-30 19:06:44 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the content.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public new TContent Content { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|