public ActionResult CreateCharacteristicValue(CharValueVM newCharValue)
        {
            var dto = new CharValueDTO();

            dto.CharacteristicId = newCharValue.CharacteristicId;
            dto.IntVal           = newCharValue.IntVal;
            dto.StrVal           = newCharValue.StrVal;
            dto.FloatVal         = newCharValue.FloatVal;
            _catalog.CreateCharacteristicValue(dto);
            return(RedirectToAction("GetCharacteristicsValues", "ContentManagerAccount", new { CharacteristicId = newCharValue.CharacteristicId }));
        }
        public ActionResult GetCharacteristicsValues(Guid CharacteristicId)
        {
            var currentCharacteristicValues    = _catalog.GetCharValuesByCharacteristicId(CharacteristicId);
            var currentCharacteristicValuesDTO = new List <CharValueVM>();

            foreach (var i in currentCharacteristicValues)
            {
                var buff = new CharValueVM();
                buff.Id               = i.Id;
                buff.StrVal           = i.StrVal;
                buff.IntVal           = i.IntVal;
                buff.FloatVal         = i.FloatVal;
                buff.CharacteristicId = CharacteristicId;
                currentCharacteristicValuesDTO.Add(buff);
            }
            return(View(currentCharacteristicValuesDTO));
        }