1
Answer

OpenWriteAsync to pass a complex type object

vinayaki mishra

vinayaki mishra

13y
2.8k
1
Hi,

I have data contract
class Student()
{
   ...
public int Age{get;set;}
Public string Name{get;set;}

}

Now i have a rest web service and like
public Student UpdateData(Student s)
{
    s.Name="Roma";
        return s;

}

Now at client side i.e at MainPage.xaml.cs using webclient i want to pass
Student stu=new Student(){Name="hi",Age30};

stu object to my service to call UpdateData... How can i do that... any help would be appreciated... Thanks in Advance!!




Answers (1)