public DeleteLevelOutput DeleteLevel(GetLevelInput input)
        {
            DeleteLevelOutput output = new DeleteLevelOutput
            {
                Id = input.Id.HasValue ? input.Id.Value : 0,
                Name = input.Name,
                Success = false
            };
            Logger.Info("Deleting an IOW level for input id: " + output.Id.ToString() + " name: " + input.Name);

            output.Success = _iowManager.DeleteLevel(input.Id, input.Name);

            return output;
        }
        public GetLevelOutput GetLevel(GetLevelInput input)
        {
            IOWLevel level = _iowManager.FirstOrDefaultLevel(input.Id, input.Name);

            return new GetLevelOutput
            {
                level = level.MapTo<LevelDto>(),
                LevelUseCount = (level != null) ? level.IOWLimits.Count : 0
            };
        }