U4-8709 - refactor UmbracoViewPage, RenderModel
This commit is contained in:
23
src/Umbraco.Web/Models/ContentModelOfTContent.cs
Normal file
23
src/Umbraco.Web/Models/ContentModelOfTContent.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user