public static string AbsoluteAction(string actionName, string controllerName, object routeValues = null) { string scheme = _httpContextAccessor.ActionContext.HttpContext.Request.Scheme; var helper = new Microsoft.AspNetCore.Mvc.Routing.UrlHelper(_httpContextAccessor.ActionContext); return(helper.Action(actionName, controllerName, routeValues, scheme)); }
public static string AbsoluteRoute(string routeName, object routeValues = null) { var helper = new Microsoft.AspNetCore.Mvc.Routing.UrlHelper(_httpContextAccessor.ActionContext); return(helper.Link(routeName, routeValues)); }
public Messanger AddButton(Microsoft.AspNetCore.Mvc.Routing.UrlHelper url, Button button) { _buttonSection.Add(button); return(this); }