public static HtmlString Invoke <TComponent>(this IViewComponentHelper helper, params object[] args) { if (helper == null) { throw new ArgumentNullException(nameof(helper)); } return(helper.Invoke(typeof(TComponent), args)); }
public static HtmlString Invoke <TComponent>([NotNull] this IViewComponentHelper helper, params object[] args) { return(helper.Invoke(typeof(TComponent), args)); }
public static HtmlString SideBar(this IViewComponentHelper helper, string subName = null, Guid?subId = null, bool showSearch = true, bool showCreateSub = true, bool showSubmit = true) { return(helper.Invoke("SideBar", subName, subId, showSearch, showCreateSub, showSubmit)); }