예제 #1
0
        public IActionResult GetUnApprovedFundings()
        {
            var fundings = _fundRepository.GetUnApprovedFundings();

            var toFund = fundings.Select(f => new GetFundingDto()
            {
                Amount       = f.Amount,
                CurrencyCode = f.Currency.Code,
                FundingId    = f.Id,
                WalletId     = f.DestinationId,
            }).ToList();

            return(Ok(ResponseMessage.Message("List of all Nood fundings yet to be approved", null, toFund)));
        }