using System.Collections.Generic; using Umbraco.Cms.Core.Models.PublishedContent; namespace Umbraco.Cms.Core.Models { /// /// The model used when rendering Partial View Macros /// public class PartialViewMacroModel : IContentModel { public PartialViewMacroModel(IPublishedContent page, int macroId, string macroAlias, string macroName, IDictionary macroParams) { Content = page; MacroParameters = macroParams; MacroName = macroName; MacroAlias = macroAlias; MacroId = macroId; } public IPublishedContent Content { get; } public string MacroName { get; } public string MacroAlias { get; } public int MacroId { get; } public IDictionary MacroParameters { get; } } }