Hello,
My model is like this
public class Emp
{
public int ID {get;set;}
public string Name {get;set;}
public int DepartmentID {get;set;}
public Department Department {get;set;}
}
public class Department
{
Department()
{
emps = new HashSet<Emp>();
}
public int ID { get;set; }
public string Name {get;set;}
public virtual ICollection<Emp> emps {get;set;}
}
after I Getting reponse in json format by running GetALL Api for department.
It shows
Department.json result
{
"name": "Income Tax",
"Emps": [] // want to hide this
}
So, I want to hide emps: []
how to do this?
