Exemplo n.º 1
0
        public string CreateProperty(string applicationReference, Property property)
        {
            Check.If(applicationReference).IsNotNullOrEmpty();
            Check.If(property).IsNotNull();

            if (!string.IsNullOrEmpty(property.PropertyReference))
            {
                return null;
            }

            var result =  _propertyRepository.CreateProperty(applicationReference, property.CreateReference(_referenceGenerator));

            return result ? property.PropertyReference : null;
        }