Ejemplo n.º 1
0
        public BaseApiResponse IncentiveLogs()
        {
            var currentAccount = _contextService.GetCurrentAccount(HttpContext.Current);

            var incentiveInfos = _walletQueryService.GetIncentiveInfos(currentAccount.WalletId.ToGuid(), 5);

            return(new IncentiveLogsResponse
            {
                IncentiveLogs = incentiveInfos.Select(x => new IncentiveInfo
                {
                    Id = Guid.NewGuid(),
                    BenevolenceAmount = x.BenevolenceAmount,
                    Amount = x.Amount,
                    CreatedOn = x.CreatedOn.GetTimeSpan(),
                    Fee = x.Fee,
                    Remark = x.Remark
                }).ToList()
            });
        }