public static MvcHtmlString AsViewFromQuery <TResult>(this IDispatcher dispatcher, QueryBase <TResult> query, [PathReference] string view, object model = null) where TResult : class { return(dispatcher.AsView(dispatcher.Query(query), view, model)); }