/// <summary> /// Generates the Form preamble /// </summary> /// <param name="html"></param> /// <param name="controllerName"></param> /// <param name="routeValues"></param> /// <param name="actionType"></param> /// <returns></returns> public static MvcForm BeginResourceForm(this HtmlHelper html, string controllerName, object routeValues, ActionType actionType) { return html.BeginResourceForm(controllerName, routeValues, null, actionType); }
/// <summary> /// Generates the Form preamble, defaulting the link for the Retrieve action /// </summary> /// <param name="ajax"></param> /// <param name="controllerName"></param> /// <param name="routeValues"></param> /// <param name="ajaxOptions"></param> /// <returns></returns> public static MvcForm BeginResourceForm(this AjaxHelper ajax, string controllerName, object routeValues, AjaxOptions ajaxOptions) { return ajax.BeginResourceForm(controllerName, routeValues, ajaxOptions, ActionType.Retrieve); }