Want to understand how returning or accepting a normal class as input parameter is different than a DataContract class.
I have class like following
public Employee
{
public string empName {get;set;}
}
and my WCF service is like following
[ServiceContract]
public interface IEmployeeService
{
[OperationContract]
Employee GetEmployeeDetails(int EmpId);
}
how Employee class is different than following
[DataContract]
public class Employee
{
[DataMember]
public string empName {get;set;}
}