Exemple #1
0
        public UI.FieldDefinition CreateReferenceField(UI.FieldDefinition fieldA, UI.FieldDefinition fieldB)
        {
            var dbField1 = Mapper.Map <DAL.Models.Field>(fieldA);
            var dbField2 = Mapper.Map <DAL.Models.Field>(fieldB);

            var newField = DbEditorService.CreateReferenceField(dbField1, dbField2);

            return(Mapper.Map <UI.FieldDefinition>(newField));
        }