Exemplo n.º 1
0
		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);
			}
		}
Exemplo n.º 2
0
 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));
     }
 }