Files
Umbraco-CMS/src/Umbraco.Web.Common/Controllers/ProxyViewDataFeature.cs
2021-02-26 16:53:53 +11:00

30 lines
896 B
C#

using Microsoft.AspNetCore.Mvc.ViewFeatures;
namespace Umbraco.Cms.Web.Common.Controllers
{
/// <summary>
/// A request feature to allowing proxying viewdata from one controller to another
/// </summary>
public sealed class ProxyViewDataFeature
{
/// <summary>
/// Initializes a new instance of the <see cref="ProxyViewDataFeature"/> class.
/// </summary>
public ProxyViewDataFeature(ViewDataDictionary viewData, ITempDataDictionary tempData)
{
ViewData = viewData;
TempData = tempData;
}
/// <summary>
/// Gets the <see cref="ViewDataDictionary"/>
/// </summary>
public ViewDataDictionary ViewData { get; }
/// <summary>
/// Gets the <see cref="ITempDataDictionary"/>
/// </summary>
public ITempDataDictionary TempData { get; }
}
}