示例#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));
        }
示例#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));
 }
示例#3
0
 public static MvcForm BeginForm(this AjaxHelper ajaxHelper, ActionResult result, AjaxOptions ajaxOptions)
 {
     return(ajaxHelper.BeginForm(result, ajaxOptions, null));
 }
示例#4
0
 public static MvcForm BeginForm(this AjaxHelper ajaxHelper, Task <ActionResult> taskResult, AjaxOptions ajaxOptions)
 {
     return(ajaxHelper.BeginForm(taskResult.Result, ajaxOptions, null));
 }