Ejemplo n.º 1
0
        public PartialViewResult GetBlockPropertyValues(LocalBlockPropertyReference propertyReference)
        {
            var model = new PropertyValuesModel
            {
                PropertyValues = _propertyService.GetBlockPropertyValues(propertyReference)
            };

            return(PartialView("_PropertyValues", model));
        }
Ejemplo n.º 2
0
        public PartialViewResult GetPropertyValues(PropertyReference reference)
        {
            if (_propertyService.IsBlock(reference))
            {
                var blockModel = new BlockPropertyListModel
                {
                    BlockProperties = _propertyService.GetBlockPropertyNames(reference)
                };

                return(PartialView("_BlockPropertyList", blockModel));
            }

            var model = new PropertyValuesModel
            {
                PropertyValues = _propertyService.GetPropertyValues(reference)
            };

            return(PartialView("_PropertyValues", model));
        }