ContentFieldDefinition Build(ContentFieldRecord source) { return new ContentFieldDefinition(source.Name); }
private ContentFieldRecord Acquire(ContentFieldDefinition contentFieldDefinition) { var result = _fieldDefinitionRepository.Table.SingleOrDefault(x => x.Name == contentFieldDefinition.Name); if (result == null) { result = new ContentFieldRecord { Name = contentFieldDefinition.Name }; _fieldDefinitionRepository.Create(result); } return result; }