Link to home
Start Free TrialLog in
Avatar of Member_2_7967608
Member_2_7967608

asked on

C# .NET code duplicate and refactore

Hi

I have lot of code which needs to be refactored.  I want to reduce and do better the code.

I have attached the DTO class and SFCOntacts which has the model . It has methods which converts XMLDocument to SFContacts. This may need some better way. Can I improve.

The Consumer class also duplicate code for Create and Update. Can I clean this. This class calls service and invoke SFContacts methods for conversion

Thanks in Advance
SFContacts.cs
ConsumingClass.txt
Avatar of ste5an
ste5an
Flag of Germany image

Can you explain why you're fiddling with XML in the samples?
ASKER CERTIFIED SOLUTION
Avatar of Manoj Patil
Manoj Patil
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_7967608
Member_2_7967608

ASKER

I will update with Sample Data
As per the question, I think I have provided the solution.
And the Author has not commented anything afterwards.