2013-11-07 17:16:22 +01:00
|
|
|
|
using System.Globalization;
|
|
|
|
|
|
using Umbraco.Core.Models;
|
|
|
|
|
|
using Umbraco.Web.Mvc;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
public class RenderModel<TContent> : RenderModel
|
2014-08-15 14:14:05 -06:00
|
|
|
|
where TContent : IPublishedContent
|
2013-11-07 17:16:22 +01:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Constructor specifying both the IPublishedContent and the CultureInfo
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="content"></param>
|
|
|
|
|
|
/// <param name="culture"></param>
|
|
|
|
|
|
public RenderModel(TContent content, CultureInfo culture)
|
|
|
|
|
|
: base(content, culture)
|
|
|
|
|
|
{
|
|
|
|
|
|
Content = content;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Constructor to set the IPublishedContent and the CurrentCulture is set by the UmbracoContext
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="content"></param>
|
|
|
|
|
|
public RenderModel(TContent content)
|
|
|
|
|
|
: base(content)
|
|
|
|
|
|
{
|
|
|
|
|
|
Content = content;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Returns the current IPublishedContent object
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public new TContent Content { get; private set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|