Пример #1
0
        public ActionResult GetAll(ServiceProxyGenerationModel model)
        {
            model.Normalize();

            var script = _proxyScriptManager.GetScript(model.CreateOptions());

            return(Content(
                       _options.MinifyGeneratedScript == true
                    ? _javascriptMinifier.Minify(script)
                    : script,
                       MimeTypes.Application.Javascript
                       ));
        }
Пример #2
0
 public string GetAll(ServiceProxyGenerationModel model)
 {
     model.Normalize();
     return(_proxyScriptManager.GetScript(model.CreateOptions()));
 }
 public ActionResult GetAll(ServiceProxyGenerationModel model)
 {
     model.Normalize();
     return(Content(_proxyScriptManager.GetScript(model.CreateOptions()), MimeTypes.Application.Javascript));
 }