Пример #1
0
        private dynamic GetTemplate()
        {
            var query = this.Bind <TemplateQuery>();
            var path  = query.TemplatePath.ParsePath();

            return
                (this.Negotiate.WithView("Application")
                 .WithMediaRangeModel("application/json", () => this.templateService.GetTemplate(path))
                 .WithMediaRangeModel("text/html", () => ApplicationModel.Build(this.kolaConfigurationRegistry)));
        }
Пример #2
0
 private dynamic GetApplication()
 {
     return(this.Negotiate
            .WithModel(ApplicationModel.Build(this.kolaConfigurationRegistry))
            .WithView("Application"));
 }