Beispiel #1
0
 private void FixBalanceForCreatedAccount(OrgAccountViewModel account)
 {
     _fixingBalanceService.AddNewBalance(new BalanceViewModel
     {
         Amount       = account.CurrentBalance,
         BalanceDate  = account.CreationDate,
         OrgAccountId = account.Id
     });
 }
Beispiel #2
0
 public IActionResult AddNewBalance([FromBody] BalanceViewModel balance)
 {
     try
     {
         return(Ok(_fixingBalanceService.AddNewBalance(balance)));
     }
     catch (BusinessLogicException ex)
     {
         return(BadRequest(ex.Message));
     }
 }