public async Task <IActionResult> Get([FromRoute] int panelId)
        {
            //easier to use int instead of string
            //var panel = await _panelRepository.Query()
            //    .FirstOrDefaultAsync(x => x.Serial.Equals(panelId, StringComparison.CurrentCultureIgnoreCase));
            var analytics = _analyticsRepository.GetPanel(panelId);

            var result = new OneHourElectricityListModel
            {
                OneHourElectricitys = analytics.Select(c => new OneHourElectricityModel
                {
                    Id       = c.Id,
                    KiloWatt = c.KiloWatt,
                    DateTime = c.DateTime
                })
            };

            return(Ok(result));
        }