Removes class constraint on RenderModel<T> and UmbracoTemplatePage<T> which will make things more flexible.

This commit is contained in:
Shannon
2014-08-15 14:14:05 -06:00
parent 1686e2f4bf
commit 4dc559a8d1
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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;