Exemplo n.º 1
0
 public static MvcForm BeginForm <TActionResult>(this HtmlHelper htmlHelper, Task <TActionResult> taskResult, FormMethod formMethod) where TActionResult : ActionResult
 {
     return(T4Extensions.BeginForm(htmlHelper, taskResult.Result, formMethod, (IDictionary <string, object>)null));
 }
Exemplo n.º 2
0
 public static MvcForm BeginForm <TActionResult>(this HtmlHelper htmlHelper, Task <TActionResult> taskResult, FormMethod formMethod, object htmlAttributes) where TActionResult : ActionResult
 {
     return(T4Extensions.BeginForm(htmlHelper, taskResult.Result, formMethod, (IDictionary <string, object>)HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes)));
 }
Exemplo n.º 3
0
 public static MvcForm BeginForm <TActionResult>(this HtmlHelper htmlHelper, Task <TActionResult> taskResult) where TActionResult : ActionResult
 {
     return(T4Extensions.BeginForm(htmlHelper, taskResult.Result, FormMethod.Post));
 }