private void ApplyActionAttributes(TagHelperContext context) { //has an action or controller been specified? if not, default if (string.IsNullOrEmpty(AspAction)) AspAction = (string)ViewContext.RouteData.Values["action"]; if (string.IsNullOrEmpty(AspController)) AspController = (string)ViewContext.RouteData.Values["controller"]; RouteValues = context.TrimPrefixedAttributes(RouteAttributePrefix); AjaxValues = context.FindPrefixedAttributes(AjaxAttributePrefix); }