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