/// <summary> /// Creates a new instance of DynamicViewBag, setting initial values in the ViewBag. /// </summary> /// <param name="viewBag">The initial view bag data or NULL for an empty ViewBag.</param> public ExecuteContext(DynamicViewBag viewBag) { if (viewBag == null) _viewBag = new DynamicViewBag(); else _viewBag = viewBag; }
/// <summary> /// Creates a new instance of ExecuteContext with an empty ViewBag. /// </summary> public ExecuteContext() { _viewBag = new DynamicViewBag(); }