public async Task<IHttpActionResult> GetReportResults([FromBody]Criteria criteria) { try { IEnumerable<IDictionary<string, object>> result = null; using(var rg = new Data.Reports.Generator(m_db)) { result = await rg.GenerateAsync(criteria); } return Ok(result); } catch(Exception e) { m_logger.Error(e); return new ExceptionResult(e, this); } }
public async Task <IHttpActionResult> GetReportResults([FromBody] Criteria criteria) { try { IEnumerable <IDictionary <string, object> > result = null; using (var rg = new Data.Reports.Generator(m_db)) { result = await rg.GenerateAsync(criteria); } return(Ok(result)); } catch (Exception e) { m_logger.Error(e); return(new ExceptionResult(e, this)); } }