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
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
Can you explain why you're fiddling with XML in the samples?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
And the Author has not commented anything afterwards.