/// <summary> /// Renders the specified partial mutator view as an HTML-encoded string. /// </summary> /// <param name="mutatorView">The partial mutator view.</param> /// <returns>The partial mutator view that is rendered as an HTML-encoded string.</returns> private MvcHtmlString Partial(MutatorView mutatorView) { mutatorView.Html = Html; mutatorView.Url = Url; mutatorView.Controller = Controller; return(mutatorView.Render()); }
/// <summary> /// Renders the specified partial mutator view as an HTML-encoded string. /// </summary> /// <param name="html">The HTML helper instance that this method extends.</param> /// <param name="mutatorView">The partial mutator view.</param> /// <param name="url">Url helper</param> /// <returns>The partial mutator view that is rendered as an HTML-encoded string.</returns> public static MvcHtmlString Partial(this HtmlHelper html, MutatorView mutatorView, UrlHelper url) { mutatorView.Html = html; mutatorView.Url = url; return(mutatorView.Render()); }
/// <summary> /// Creates a <see cref="MutatorActionResult"/> instance from <see cref="MutatorView"/>. /// </summary> /// <param name="mutatorView"></param> public MutatorActionResult(MutatorView mutatorView) { _mutatorView = mutatorView; }