I tried to find the answer to this question and no luck. Suppose I have a model that looks something like this:
public class A
{
public int Id {get;set}
public ICollection<B> Bs {get;set;}
}
public class B
{
public int Id {get;set}
public ICollection<C> Cs {get;set;}
}
public class C
{
public int Id {get;set}
public string Something {get;set;}
}
Can I write a Web Api 2 OData controller when it can be requested as follows: / OData / A (1) / B (2) / C (3) / Something
If this is redundant, tell me the place I should look at. Thank!
source
share