public async Task<List<DataTable>> GetStatsAsync(stat body)
 {
     StatsQuery sQ = new StatsQuery(body);
     var str = sQ.getData();
     var js = JsonConvert.SerializeObject(str);
     //TransformUtil.WriteLogToFile("return from stat" + js);
     return str;
 }
        public async Task <List <DataTable> > GetFromQueryEngineAsync([FromBody] stat body)
        {
            TransformUtil.WriteLogToFile("in waffle>" + JsonConvert.SerializeObject(body));
            Task <List <DataTable> > getresult = GetStatQueryPostAsync(body);

            return(await getresult);
            //return null;
            //return await Task.Run(() => { return GetStatQueryPostAsync(body); });
        }
        public async Task <List <DataTable> > GetStatsAsync(stat body)
        {
            StatsQuery sQ  = new StatsQuery(body);
            var        str = sQ.getData();
            var        js  = JsonConvert.SerializeObject(str);

            //TransformUtil.WriteLogToFile("return from stat" + js);
            return(str);
        }
 public async Task <List <DataTable> > GetStatQueryPostAsync(stat body)
 {
     try
     {
         return(await GetStatsAsync(body));
     }
     catch (Exception ex)
     {
         TransformUtil.WriteLogToFile("in actual task>" + ex.Message.ToString());
         return(new List <DataTable>());
     }
 }
        public async Task<List<DataTable>> GetStatQueryPostAsync(stat body)
        {
            try
            {
                return await GetStatsAsync(body);
                
            }
            catch (Exception ex)
            {
                TransformUtil.WriteLogToFile("in actual task>" + ex.Message.ToString());
                return new List<DataTable>();
            }

        }