Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var actorSystem
            var actorRef = actorSystem.ActorSelection("/user/Actor_1");

            FinancialTransaction financialTransaction = new FinancialTransaction()
            {
                Amount = 12.00M, ID = "MD1", Type = FinancialTransactionType.Deposit
            };
            FinancialTransactionRequest financialTransactionRequest = new FinancialTransactionRequest()
            {
                AccountID = "maddog19", Transaction = financialTransaction
            };

            actorRef.Tell(financialTransactionRequest);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> InsertFinancialTransactionAsync([FromBody] FinancialTransactionRequest request)
        {
            var financialResponse = await _appService.AddAsync(request);

            return(Created("", financialResponse));
        }
Exemplo n.º 3
0
        public async Task <IActionResult> UpdateAsync([FromRoute] int transactionId, [FromBody] FinancialTransactionRequest transaction)
        {
            var resopnse = await _appService.UpdateAsync(transaction, transactionId);

            return(Ok(resopnse));
        }