Beispiel #1
0
        public override IResult Execute(HttpContextBase context)
        {
            var q = context.Request.QueryString["q"];
            var p = int.Parse(context.Request.QueryString["p"]);

            new HQLCodeAssist(new NHConfigDataProvider(NHWebConsoleSetup.Configuration())).CodeComplete(q, p, this);
            return(new ViewResult(new SuggestionResponse {
                Error = error,
                Suggestions = string.Join(",", suggestions.Select(s => string.Format("\"{0}\"", s)).ToArray()),
            }, ViewName));
        }
Beispiel #2
0
 public IndexController()
 {
     Cfg = NHWebConsoleSetup.Configuration();
 }