Example #1
0
        public async Task <object> RenderViewFromSite([FromUri] int siteId, [FromUri] int viewId, [FromBody] Dictionary <string, object> paramSet)
        {
            Request.Headers.Add("Accept-Encoding", "gzip");

            Stopwatch watch = new Stopwatch();

            watch.Start();
            object result = await _renderService.RenderViewData(siteId, viewId, paramSet);

            watch.Stop();

            AppLogger.LogTimerAPI(watch);

            return(result);
        }
Example #2
0
        public async Task <object> ExecuteDataset([FromUri] string commanName, [FromBody] Dictionary <string, object> paramSet)
        {
            Stopwatch watch = new Stopwatch();

            watch.Start();
            DataSet Result = await _renderService.ExecuteDataSet(commanName, paramSet);

            //           var compStr = CommonClass.MiniFyAndCompressData(JsonResult);

            watch.Stop();

            AppLogger.LogTimerAPI(watch);

            return(Result);
        }