Abp.Web.Api.ProxyScripting.Generators.JQuery.JQueryProxyScriptGenerator.AddModuleScript(System.Text.StringBuilder, Abp.Web.Api.Modeling.ModuleApiDescriptionModel)

Here are the examples of the csharp api class Abp.Web.Api.ProxyScripting.Generators.JQuery.JQueryProxyScriptGenerator.AddModuleScript(System.Text.StringBuilder, Abp.Web.Api.Modeling.ModuleApiDescriptionModel) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

View license
public string CreateScript(ApplicationApiDescriptionModel model)
        {
            var script = new StringBuilder();

            script.AppendLine("/* This file is automatically generated by ABP framework to use MVC Controllers from javascript. */");
            script.AppendLine();
            script.AppendLine("var abp = abp || {};");
            script.AppendLine("abp.services = abp.services || {};");
            
            foreach (var module in model.Modules.Values)
            {
                script.AppendLine();
                AddModuleScript(script, module);
            }

            return script.ToString();
        }