Create an opportunity with Contact ID



My problem is that i have created a button via add-in using Visual Studio, it's loading good, but when i try to consume right now web service i've got an error.

What i need to do is in the contact workspace create a button that when i click get the contact id and create a new opportunity with that id and some other variables of this workspace such as telephone office, etc. This process must be automatic for no wasting time.

What i did is create an add-in and try to put there part of the console class that connect to right now. Any ideas please i really need help with this, i will appreciate it. Thanks.

Zircon - This is a contributing Drupal Theme
Design by WeebPal.