public ActionResult CustomReportSql(string report) { try { var m = new CustomReportsModel(DbUtil.Db, report); return(Content($"<pre style='font-family:monospace'>{m.Sql()}\n</pre>")); } catch (Exception ex) { return(Message(ex.Message)); } }
public ActionResult CustomReportSql(Guid id, string report) { try { var m = new CustomReportsModel(DbUtil.Db); return(Content("<pre style='font-family:monospace'>{0}\n</pre>".Fmt( m.Sql(id, report)))); } catch (Exception ex) { return(Message(ex.Message)); } }