protected override void SetEmbeds(IEmbedCollectionExpression embeds, AccountDto root) { foreach (var embed in embeds.Embeds) { switch (embed.Name) { case "operations": var criteria = new Criteria <OperationCriteria>(); criteria.AddFilter("accountId", root.Id.ToString(), typeof(Guid)); root.Operations = (IEnumerable <OperationDto>)ProcessAsync(criteria).Result; break; } } }
protected virtual void SetEmbeds(IEmbedCollectionExpression embeds, TOut root) { }