using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get a specific entry that has linked content
var movie = client.Entries.Get("654fb097-8104-411c-8c6a-5e9050cc49c2");
// Get the director entry associated with the movie
var director = movie.Get<Entry>("director");
// Alternatively get the entry as a dynamic object
var dynamicDirector = movie.Get("director");
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Get a specific entry that has linked content
var movie = client.Entries.Get("654fb097-8104-411c-8c6a-5e9050cc49c2");
// Get the actors associated with the movies
var actors = movie.Get<Entry[]>("actors");
// Alternatively the entries can be returned as a list...
var actorList = movie.Get<List<Entry>>("actors");
// ... or as a dynamic object
var dynamicActors = movies.Get("actors");