24 lines
630 B
C#
24 lines
630 B
C#
|
|
using Umbraco.Core.Models.PublishedContent;
|
|||
|
|
|
|||
|
|
namespace Umbraco.Web.Models
|
|||
|
|
{
|
|||
|
|
public class ContentModel<TContent> : ContentModel
|
|||
|
|
where TContent : IPublishedContent
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Initializes a new instance of the <see cref="ContentModel{TContent}"/> class with a content.
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="content"></param>
|
|||
|
|
public ContentModel(TContent content)
|
|||
|
|
: base(content)
|
|||
|
|
{
|
|||
|
|
Content = content;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Gets the content.
|
|||
|
|
/// </summary>
|
|||
|
|
public new TContent Content { get; }
|
|||
|
|
}
|
|||
|
|
}
|