public IList <OptionSetValue> GetOptionSetValues(EnumOptionSet optionSet)
 {
     return(_optionSets.Where(o => o.Id.Equals(optionSet)).SingleOrDefault().Values);
 }
 public string GetOptionSetValueText(EnumOptionSet optionSet, string key)
 {
     return(GetOptionSetValues(optionSet).Where(o => o.Key.Equals(key)).Select(o => o.Text).SingleOrDefault());
 }