public static MvcForm SecureBeginRouteForm(this HtmlHelper htmlHelper, string routeName, Task <ActionResult> taskResult, FormMethod method, IDictionary <string, object> htmlAttributes)
 {
     return(htmlHelper.SecureBeginRouteForm(routeName, taskResult.Result, method, htmlAttributes));
 }
 public static MvcForm SecureBeginRouteForm(this HtmlHelper htmlHelper, string routeName, Task <ActionResult> taskResult, FormMethod method)
 {
     return(htmlHelper.SecureBeginRouteForm(routeName, taskResult.Result, method, null));
 }
 public static MvcForm SecureBeginRouteForm(this HtmlHelper htmlHelper, string routeName, Task <ActionResult> taskResult, FormMethod method, object htmlAttributes)
 {
     return(htmlHelper.SecureBeginRouteForm(routeName, taskResult.Result, method, HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes)));
 }
 public static MvcForm SecureBeginForm(this HtmlHelper htmlHelper, Task <ActionResult> taskResult, FormMethod formMethod, IDictionary <string, object> htmlAttributes)
 {
     return(htmlHelper.SecureBeginForm(taskResult.Result, formMethod, htmlAttributes));
 }
 public static MvcForm SecureBeginForm(this HtmlHelper htmlHelper, Task <ActionResult> taskResult, FormMethod formMethod, object htmlAttributes)
 {
     return(SecureBeginForm(htmlHelper, taskResult.Result, formMethod, HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes)));
 }
 public static MvcForm SecureBeginForm(this HtmlHelper htmlHelper, Task <ActionResult> taskResult, FormMethod formMethod)
 {
     return(htmlHelper.SecureBeginForm(taskResult.Result, formMethod, null));
 }
 public static MvcForm SecureBeginRouteForm(this HtmlHelper htmlHelper, string routeName, ActionResult result, FormMethod method, IDictionary <string, object> htmlAttributes)
 {
     return(htmlHelper.BeginRouteForm(routeName, result.GetRouteValueDictionary(), method, htmlAttributes));
 }
        public static MvcForm SecureBeginForm(this HtmlHelper htmlHelper, ActionResult result, FormMethod formMethod, IDictionary <string, object> htmlAttributes)
        {
            var callInfo = result.GetT4MVCResult();

            return(htmlHelper.BeginForm(callInfo.Action, callInfo.Controller, callInfo.RouteValueDictionary, formMethod, htmlAttributes));
        }