Пример #1
0
        public string GetCustomDataValueByValueId(string valueId)
        {
            if (valueId == null)
            {
                return(null);
            }

            CustomDataValueDomainModel model = GetCustomDataValueDomainByValueId(valueId);

            return((model != null) ? model.DataValue : null);
        }
Пример #2
0
        public CustomDataValueDomainModel GetCustomDataValueDomainByDataCode(string dataValueCode)
        {
            CustomDataValueDomainModel model = null;

            foreach (CustomDataValueDomainModel item in ValueList.Values)
            {
                if (item.DataValueCode == dataValueCode)
                {
                    model = item;
                    break;
                }
            }

            return(model);
        }