public double GetValue(Band band, string color)
        {
            var bandColorValue = new BandColorValue()
            {
                Band = band, Color = color
            };
            var sp = new BandColorSpecification(bandColorValue);

            if (sp.IsSatisfiedBy(bandColorValue))
            {
                var value = colors.GetAllBandColors().Where(sp.ToExpression()).SingleOrDefault();
                if (value == null)
                {
                    throw new ColorNotFoundException(bandColorValue.Band);
                }
                return(value.Value);
            }
            return(0);
        }
 public IEnumerable <ColorUIList> GetColor(Band band)
 {
     return(bandColor.GetAllBandColors().Where(x => x.Band == band).Select(x => new ColorUIList {
         Text = x.Color, Value = x.Value.ToString()
     }));
 }