public HtmlString History([FromBody] GetSensorHistoryModel model)
        {
            model.Product = model.Product.Replace('-', ' ');
            model.Path    = model.Path?.Replace('_', '/').Replace('-', ' ');
            var result = _monitoringCore.GetSensorHistory(HttpContext.User as User, model);

            //return new HtmlString(ListHelper.CreateHistoryList(result));
            return(new HtmlString(TableHelper.CreateHistoryTable(result)));
        }
        public JsonResult RawHistory([FromBody] GetSensorHistoryModel model)
        {
            model.Product = model.Product.Replace('-', ' ');
            model.Path    = model.Path?.Replace('_', '/').Replace('-', ' ');
            var commonHistory = _monitoringCore.GetSensorHistory(HttpContext.User as User, model);

            //var selected = commonHistory.Select(h => h.TypedData).ToList();

            return(new JsonResult(commonHistory));
        }
 public List <SensorHistoryData> GetSensorHistory(User user, GetSensorHistoryModel model)
 {
     return(GetSensorHistory(user, model.Path, model.Product, model.TotalCount));
 }