public static ComponentBuilder <MvcBootstrapConfig <TModel>, TForm> SetAction <TModel, TForm>(
            this ComponentBuilder <MvcBootstrapConfig <TModel>, TForm> builder, ActionResult result)
            where TForm : Form
        {
            IT4MVCActionResult callInfo = result.GetT4MVCResult();

            builder.SetAction(UrlHelper.GenerateUrl(null, callInfo.Action, callInfo.Controller, callInfo.Protocol, null, null, result.GetRouteValueDictionary(),
                                                    builder.GetConfig().GetHtmlHelper().RouteCollection, builder.GetConfig().GetHtmlHelper().ViewContext.RequestContext, true));
            return(builder);
        }
        public static ComponentBuilder <MvcBootstrapConfig <TModel>, Form> SetAction <TModel>(
            this ComponentBuilder <MvcBootstrapConfig <TModel>, Form> builder, string actionName, string controllerName, object routeValues = null)
        {
            RouteValueDictionary routeValueDictionary = routeValues == null ? new RouteValueDictionary() : routeValues as RouteValueDictionary;

            if (routeValueDictionary == null)
            {
                new RouteValueDictionary(routeValues);
            }
            builder.SetAction(UrlHelper.GenerateUrl(null, actionName, controllerName, routeValueDictionary,
                                                    builder.GetConfig().HtmlHelper.RouteCollection, builder.GetConfig().HtmlHelper.ViewContext.RequestContext, true));
            return(builder);
        }
        public static ComponentBuilder <MvcBootstrapConfig <TModel>, TForm> SetRoute <TModel, TForm>(
            this ComponentBuilder <MvcBootstrapConfig <TModel>, TForm> builder, string routeName, object routeValues = null)
            where TForm : Form
        {
            RouteValueDictionary routeValueDictionary = routeValues == null ? new RouteValueDictionary() : routeValues as RouteValueDictionary;

            if (routeValueDictionary == null)
            {
                routeValueDictionary = new RouteValueDictionary(routeValues);
            }
            builder.SetAction(UrlHelper.GenerateUrl(routeName, null, null, routeValueDictionary,
                                                    builder.GetConfig().HtmlHelper.RouteCollection, builder.GetConfig().HtmlHelper.ViewContext.RequestContext, false));
            return(builder);
        }