public ActionResult Results() { var cb = new SqlConnectionStringBuilder(Util.ConnectionString); cb.ApplicationName = "qb"; DbUtil.Db = new CMSDataContext(cb.ConnectionString); var m = new AdvancedModel(); try { UpdateModel(m); } catch (Exception ex) { return(Content("Something went wrong<br><p>" + ex.Message + "</p>")); } m.LoadScratchPad(); var starttime = DateTime.Now; m.PopulateResults(); DbUtil.LogActivity("QB Results ({0:N1}, {1})".Fmt(DateTime.Now.Subtract(starttime).TotalSeconds, m.QueryId)); return(View(m)); }