Example #1
0
        public ActionResult GetAssemblyScript(string assemblyName, string debug)
        {
            Assembly asm;

            if (Utils.TryFindAssembly(assemblyName, out asm))
            {
                string s = moduleUtils.GetAssemblyScriptContent(asm, !string.IsNullOrEmpty(debug));
                if (s != null)
                {
                    return(JavaScript(s));
                }
            }
            throw new HttpException(404, "File not found");
        }