System.Web.Mvc.T4Extensions.Action C# (CSharp) Method

Action() public static method

public static Action ( this htmlHelper, System.Web.Mvc.ActionResult result ) : System.Web.Mvc.MvcHtmlString
htmlHelper this
result System.Web.Mvc.ActionResult
return System.Web.Mvc.MvcHtmlString
        public static MvcHtmlString Action(this HtmlHelper htmlHelper, ActionResult result) {
            var callInfo = result.GetT4MVCResult();
            return htmlHelper.Action(callInfo.Action, callInfo.Controller, callInfo.RouteValueDictionary);
        }
        public static string Action(this UrlHelper urlHelper, ActionResult result) {

Same methods

T4Extensions::Action ( this urlHelper, System.Web.Mvc.ActionResult result ) : string

Usage Example

Example #1
0
 public static string Action <TActionResult>(this UrlHelper urlHelper, Task <TActionResult> taskResult) where TActionResult : ActionResult
 {
     return(T4Extensions.Action(urlHelper, taskResult.Result, (string)null, (string)null));
 }
All Usage Examples Of System.Web.Mvc.T4Extensions::Action