public IIncodingMetaLanguageEventBuilderDsl AjaxPost([NotNull] Func <IUrlDispatcher, string> url)
        {
            var urlDispatcher = new UrlDispatcher(new UrlHelper(Html.ViewContext));

            return(AjaxPost(url(urlDispatcher)));
        }
Exemple #2
0
        public IncodingMetaCallbackInsertDsl WithTemplateByUrl(Func <UrlDispatcher, string> evaluated)
        {
            var dispatcher = new UrlDispatcher(new UrlHelper(_htmlHelper.ViewContext));

            return(WithTemplateByUrl(evaluated(dispatcher)));
        }