示例#1
0
        private dynamic ExpandSingleAccountItemAsync(AccountEntity accountItem, ApiVersion version)
        {
            var        links = GetLinks(accountItem.Id, version);
            AccountDto item  = _mapper.Map <AccountDto>(accountItem);

            if (!string.IsNullOrEmpty(_fakeAddress))
            {
                item.AccountAddress = _fakeAddress;
            }

            var itemToReturn = item.ToDynamic() as IDictionary <string, object>;

            itemToReturn.Add("linkslist", links);

            return(itemToReturn);
        }