public IActionResult PostCredit(int id, [FromBody] Money money) { var checkingAccount = _checkingAccountService.GetById(id); if (checkingAccount == null) { return(NotFound()); } try { _checkingAccountService.Credit(checkingAccount, money.Value); return(NoContent()); } catch (Exception e) { return(BadRequest($"Error: {e.Message}")); } }