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))); }
private dynamic GetApplication() { return(this.Negotiate .WithModel(ApplicationModel.Build(this.kolaConfigurationRegistry)) .WithView("Application")); }