コード例 #1
0
        public void DeleteGenericCatalogAttribute(GenericCatalogAttribute genericCatalogAttribute)
        {
            if (genericCatalogAttribute == null)
                throw new ArgumentNullException("genericCatalogAttribute");

            _genericCatalogAttributeRepository.Delete(genericCatalogAttribute);

            _cacheManager.RemoveByPattern(GENERICCATALOGATTRIBUTES_BY_ID);
        }
コード例 #2
0
        // Get Control Type List
        private void GetControlTypeList()
        {
            var entity = new GenericCatalogAttribute();

            var controlTypeList = entity.ControlType.ToEnumList();
            ViewData["ControlTypes"] = controlTypeList;

            //var controlTypeModelList = new List<ControlTypeModel>();
            //controlTypeModelList.AddRange(entity.ControlType.ToEnumList().Select(controlType => new ControlTypeModel()
            //{
            //    ControlTypeId = controlType.Key,
            //    ControlTypeName = controlType.Name
            //}));
        }