public TreeListCollection GetDescription() { var sessionData = HttpContext.Session.GetSessionData(); var descriptor = new Descriptor.Descriptor(); return(GetTreeListData(descriptor.GetDescription(sessionData.CompiledResult))); }
public ActionResult Compile() { var sessionData = HttpContext.Session.GetSessionData(); try { sessionData.CompiledResult = CodeCompiler.Run(sessionData.SourceCode, sessionData.FileObject); var descriptor = new Descriptor.Descriptor(); return(new ObjectResult(GetTreeListData(descriptor.GetDescription(sessionData.CompiledResult)))); } catch (Exception ex) { Core.Log.Write(ex); return(new ObjectResult(new SerializableException(ex))); } }