private List <AttributeDTO> GetAttributesByType(string attributeType)
        {
            var attributeTypeId = _configurationWrapper.GetConfigIntValue(attributeType);
            var attributeTypes  = _attributeService.GetAttributeTypes(attributeTypeId);

            return(attributeTypes.Single().Attributes);
        }
예제 #2
0
        public List <ChildrenOptions> ChildrenOptions()
        {
            var attributeTypeId = _configurationWrapper.GetConfigIntValue("GoCincinnatiRegistrationChildrenAttributeType");
            var attributeTypes  = _attributeService.GetAttributeTypes(attributeTypeId);
            var attributes      = attributeTypes.Single().Attributes;

            return(attributes.Select(attribute => new ChildrenOptions
            {
                AttributeId = attribute.AttributeId,
                PluralLabel = string.Concat("Children Ages ", attribute.Name),
                SingularLabel = string.Concat("Child Age ", attribute.Name),
                Value = 0
            }).ToList());
        }
        public IHttpActionResult Get()
        {
            var attributeTypes = _attributeService.GetAttributeTypes(null);

            return(this.Ok(attributeTypes));
        }