Removes class constraint on RenderModel<T> and UmbracoTemplatePage<T> which will make things more flexible.
This commit is contained in:
@@ -5,7 +5,7 @@ using Umbraco.Web.Mvc;
|
||||
namespace Umbraco.Web.Models
|
||||
{
|
||||
public class RenderModel<TContent> : RenderModel
|
||||
where TContent : class, IPublishedContent
|
||||
where TContent : IPublishedContent
|
||||
{
|
||||
/// <summary>
|
||||
/// Constructor specifying both the IPublishedContent and the CultureInfo
|
||||
|
||||
@@ -5,7 +5,7 @@ using Umbraco.Web.Models;
|
||||
namespace Umbraco.Web.Mvc
|
||||
{
|
||||
public abstract class UmbracoTemplatePage<TContent> : UmbracoViewPage<RenderModel<TContent>>
|
||||
where TContent : class, IPublishedContent
|
||||
where TContent : IPublishedContent
|
||||
{
|
||||
private object _currentPage;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user