/// <summary>
        /// Initializes a new instance of the <see cref="RawHtmlModel"/> class.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <param name="context"></param>
        public RazorHtmlModel(DynamicContentItem item, ViewContext context) : base(item)
        {
            if (string.IsNullOrWhiteSpace(Html))
            {
                foreach (
                    var prop in
                    item.PropertyValues.Where(
                        prop => String.Equals(prop.Name, "RazorHtml", StringComparison.InvariantCultureIgnoreCase)))
                {
                    Html = prop.LongTextValue;
                    break;
                }
            }

            Html = ViewRenderer.RenderTemplate(Html, this, context.Controller.ControllerContext);
        }
 /// <summary>
 /// Processes the razor template.
 /// </summary>
 /// <param name="templateBody">The template body.</param>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 /// <exception cref="System.NotImplementedException"></exception>
 private string ProcessRazorTemplate(string templateBody, IDictionary <string, object> context)
 {
     return(ViewRenderer.RenderTemplate(templateBody, context));
 }