public DeleteVariableOutput DeleteVariable(GetVariableInput input)
        {
            Logger.Info("Delete a variable for input Id= " + (input.Id.HasValue ? (input.Id.Value).ToString() : "n/a") + " Name= " + input.Name);

            bool success = _iowManager.DeleteVariable(input.Id, input.Name);
            return new DeleteVariableOutput
            {
                Id = input.Id.HasValue ? input.Id.Value : 0,
                Name = input.Name,
                Success = success
            };
        }
        public GetVariableOutput GetVariable(GetVariableInput input)
        {
            IOWVariable variable = _iowManager.FirstOrDefaultVariable(input.Id, input.Name);

            return new GetVariableOutput
            {
                variable = variable.MapTo<VariableDto>(),
                LimitCount = (variable != null) ? variable.IOWLimits.Count : 0
            };
        }