Beispiel #1
0
        public static MvcForm BeginForm(this AjaxHelper ajaxHelper, ActionResult result, AjaxOptions ajaxOptions, IDictionary <string, object> htmlAttributes)
        {
            var callInfo = result.GetT4MVCResult();

            return(ajaxHelper.BeginForm(callInfo.Action, callInfo.Controller, callInfo.RouteValueDictionary, ajaxOptions, htmlAttributes));
        }
Beispiel #2
0
 public static MvcForm BeginForm(this AjaxHelper ajaxHelper, Task <ActionResult> taskResult, AjaxOptions ajaxOptions, IDictionary <string, object> htmlAttributes)
 {
     return(ajaxHelper.BeginForm(taskResult.Result, ajaxOptions, htmlAttributes));
 }
Beispiel #3
0
 public static MvcForm BeginForm(this AjaxHelper ajaxHelper, ActionResult result, AjaxOptions ajaxOptions)
 {
     return(ajaxHelper.BeginForm(result, ajaxOptions, null));
 }
Beispiel #4
0
 public static MvcForm BeginForm(this AjaxHelper ajaxHelper, Task <ActionResult> taskResult, AjaxOptions ajaxOptions)
 {
     return(ajaxHelper.BeginForm(taskResult.Result, ajaxOptions, null));
 }