コード例 #1
0
ファイル: TransactionService.cs プロジェクト: antewasin/ATM
 public async Task AddTransction(DoTransaction comment)
 {
     ATM.Core.Domain.Transaction transaction = new ATM.Core.Domain.Transaction(Guid.NewGuid(), comment.BankAccountId, comment.Amount);
     await _repository.AddTransction(transaction);
 }
コード例 #2
0
ファイル: TransactionService.cs プロジェクト: antewasin/ATM
        public async Task <TransactionDto> GetAsync(Guid id)
        {
            ATM.Core.Domain.Transaction transaction = await _repository.Get(id);

            return(_mapper.Map <TransactionDto>(transaction));
        }