void CreateField(FieldInfo field, CustomFormSettings formSettings) { CustomField newField = new CustomField { Id = Guid.NewGuid(), Enabled = true, Name = field.FieldName, FieldType = field.FieldType, Description = field.Description }; _categoryRepository.AddField(formSettings, newField); }