private List<SelectListItem> GetDeviceList(string selectectValue)
        {
            List<SelectListItem> l = new List<SelectListItem>();
            l.Add(new Microsoft.AspNetCore.Mvc.Rendering.SelectListItem() { Text = "" });

            myHub.hubConfig?.device.ForEach(x => 
                {
                    var sli = new Microsoft.AspNetCore.Mvc.Rendering.SelectListItem()
                    {
                        Text = x.label,
                        Selected = (x.label == selectectValue)
                    };

                    l.Add(sli);
                });

            return l;
        }
        private List <SelectListItem> GetDeviceList(string selectectValue)
        {
            List <SelectListItem> l = new List <SelectListItem>();

            l.Add(new Microsoft.AspNetCore.Mvc.Rendering.SelectListItem()
            {
                Text = ""
            });

            myHub.hubConfig?.device.ForEach(x =>
            {
                var sli = new Microsoft.AspNetCore.Mvc.Rendering.SelectListItem()
                {
                    Text     = x.label,
                    Selected = (x.label == selectectValue)
                };

                l.Add(sli);
            });

            return(l);
        }