public object Get(GetBrandingCss request) { var result = _config.GetConfiguration <BrandingOptions>("branding"); // When null this throws a 405 error under Mono OSX, so default to empty string return(ResultFactory.GetResult(Request, result.CustomCss ?? string.Empty, "text/css")); }
public object Get(GetBrandingCss request) { var result = _config.GetConfiguration <BrandingOptions>("branding"); return(ResultFactory.GetResult(result.CustomCss, "text/css")); }