Esempio n. 1
0
 public static IHtmlContent AsViewFromQuery <TResult>(this HtmlDispatcher dispatcher, QueryBase <TResult> query, [AspMvcPartialView] string view, object model = null) where TResult : class
 {
     return(dispatcher.AsView(dispatcher.Query(query), view, model));
 }
Esempio n. 2
0
 public static async Task <IHtmlContent> AsViewFromQueryAsync <TResult>(this HtmlDispatcher dispatcher, QueryBaseAsync <TResult> query, [AspMvcPartialView] string view, object model = null) where TResult : class
 {
     return(dispatcher.AsView(await dispatcher.QueryAsync(query), view, model));
 }
Esempio n. 3
0
 // ReSharper disable once UnusedParameter.Global
 public static IHtmlContent AsView <TData>(this HtmlDispatcher dispatcher, TData data, [AspMvcPartialView] string view, object model = null) where TData : class
 {
     return(new HtmlString(IoCFactory.Instance.TryResolve <ITemplateFactory>().Render(dispatcher.HtmlHelper, view, data, model)));
 }