public ActionResult <dasCommandsStructure> Put([FromBody] dasCommandsStructure newConfig)
        {
            SmartDASService service;

            try {
                service = new SmartDASService();
                service.Connect();
            } catch (Exception e) {
                return(StatusCode(500, e));
            }

            try {
                service.setDASCommands(newConfig);
            } catch (Exception e) {
                service.Disconnect();
                return(StatusCode(500, e));
            }

            try {
                service.setDASCommands(newConfig);
                var dasCommands = service.getDASCommands();
                service.Disconnect();
                return(dasCommands);
            } catch (Exception e) {
                service.Disconnect();
                return(StatusCode(500, e));
            }
        }