Esempio n. 1
0
        public async Task <IList <BankTransactionLiteResult> > GetTransactionsFromAccountUid(Guid accountUid)
        {
            var bankAccount = await bankAccountRepository.FindAccountByUidAsync(accountUid);

            if (bankAccount is null)
            {
                throw new InvalidOperationException("Account is invalid!");
            }

            return(mapper.Map <IList <BankTransactionLiteResult> >(await bankTransactionRepository.GetTransactionsOf(bankAccount)));
        }