Files
Umbraco-CMS/src/Umbraco.Core/Models/PartialViewMacroModel.cs

32 lines
925 B
C#
Raw Normal View History

using System.Collections.Generic;
using Umbraco.Cms.Core.Models.PublishedContent;
2018-06-29 19:52:40 +02:00
namespace Umbraco.Cms.Core.Models
2018-06-29 19:52:40 +02:00
{
/// <summary>
/// The model used when rendering Partial View Macros
/// </summary>
public class PartialViewMacroModel : IContentModel
2018-06-29 19:52:40 +02:00
{
public PartialViewMacroModel(IPublishedContent page,
int macroId,
2022-03-29 13:44:21 +02:00
string? macroAlias,
string? macroName,
IDictionary<string, object?> macroParams)
2018-06-29 19:52:40 +02:00
{
Content = page;
MacroParameters = macroParams;
MacroName = macroName;
MacroAlias = macroAlias;
MacroId = macroId;
}
public IPublishedContent Content { get; }
2022-03-29 13:44:21 +02:00
public string? MacroName { get; }
public string? MacroAlias { get; }
public int MacroId { get; }
2022-03-29 13:44:21 +02:00
public IDictionary<string, object?> MacroParameters { get; }
2018-06-29 19:52:40 +02:00
}
}