public async Task <IActionResult> GetTimeSeriesData(Int16?buildingId, byte?objectId, byte?datafildId, string timeStamp)
        {
            DateTime startDate = DateTime.Now.Date;
            DateTime endDate   = DateTime.Now.Date;

            if (timeStamp != null)
            {
                var st = timeStamp.Split(',');
                st[0]     = st[0].Substring(4, 11);
                st[1]     = st[1].Substring(4, 11);
                startDate = Convert.ToDateTime(st[0]);
                endDate   = Convert.ToDateTime(st[1]);
            }
            if (buildingId == 0 || buildingId == null)
            {
                buildingId = 1;
            }
            if (objectId == 0 || objectId == null)
            {
                objectId = 1;
            }
            if (datafildId == 0 || datafildId == null)
            {
                datafildId = 1;
            }

            var data = readingRepository.GenerateTimeSeriesReport(buildingId, objectId, datafildId, startDate, endDate);

            return(Ok(data));
        }