public UI.FieldDefinition CreateField(UI.FieldDefinition field) { var dbField = Mapper.Map <DAL.Models.Field>(field); dbField = DbEditorService.CreateField(dbField); return(Mapper.Map <UI.FieldDefinition>(dbField)); }
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)); }