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