User-1080777599 posted
I am using a WCF Data Service to insert data into the Databse via Entity Framework 5.0.
I need to insert an Object of type Employee to the Employee Table using a WebInvoke method.
But WebInvoke method is not allowing custom objects as input parameters. It says 'Only primitive data types are allowed'.
How do I pass this parameter to the service side or should I use some other method for this?
For eg:-
[WebInvoke(Method = "POST")]
public int AddEmployee(Employee Obj)
{
return 1;
}