2021-02-04 14:51:55 +11:00
|
|
|
|
using Microsoft.AspNetCore.Mvc.ViewFeatures;
|
|
|
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
|
namespace Umbraco.Cms.Web.Common.Controllers
|
2021-02-04 14:51:55 +11:00
|
|
|
|
{
|
|
|
|
|
|
/// <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) => ViewData = viewData;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the <see cref="ViewDataDictionary"/>
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ViewDataDictionary ViewData { get; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|