Exemple #1
0
        /// <summary>
        /// Renders the specified view against the current context.
        /// </summary>
        /// <param name="viewName">The name of the view to render.</param>
        /// <param name="model">The model object supplied to the view.</param>
        /// <param name="viewData">The view data supplied to the view.</param>
        public void Include(string viewName, object model, ViewDataDictionary viewData)
        {
            Precondition.Defined(viewName, () => Error.ArgumentNull("viewName"));

            ComponentController component = new ComponentController();

            component.RenderView(_context, viewName, model, viewData);
        }