protected override System.Collections.Generic.List <Genre> LoadElements(int limit, GetGenreRequest options) { if (limit > 0 && options.Limit <= 0) { options.Limit = limit; } options.Depth = 1; var oneResponse = _restClient.Get(options); List <Genre> result = new List <Genre>(); // foreach oneResponse .. result.Add(GenreDto.fromJson(oneResponse)); return(result); }
public Genre(GenreDto args) : base(args.Id) { _foo = args.Foo; }