Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 public static MvcForm SecureBeginRouteForm(this HtmlHelper htmlHelper, string routeName, Task <ActionResult> taskResult, FormMethod method)
 {
     return(htmlHelper.SecureBeginRouteForm(routeName, taskResult.Result, method, null));
 }
Ejemplo n.º 3
0
 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)));
 }
Ejemplo n.º 4
0
 public static MvcForm SecureBeginForm(this HtmlHelper htmlHelper, Task <ActionResult> taskResult, FormMethod formMethod, IDictionary <string, object> htmlAttributes)
 {
     return(htmlHelper.SecureBeginForm(taskResult.Result, formMethod, htmlAttributes));
 }
Ejemplo n.º 5
0
 public static MvcForm SecureBeginForm(this HtmlHelper htmlHelper, Task <ActionResult> taskResult, FormMethod formMethod, object htmlAttributes)
 {
     return(SecureBeginForm(htmlHelper, taskResult.Result, formMethod, HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes)));
 }
Ejemplo n.º 6
0
 public static MvcForm SecureBeginForm(this HtmlHelper htmlHelper, Task <ActionResult> taskResult, FormMethod formMethod)
 {
     return(htmlHelper.SecureBeginForm(taskResult.Result, formMethod, null));
 }
Ejemplo n.º 7
0
 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));
 }
Ejemplo n.º 8
0
        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));
        }