public static void Withdraw(Account account, decimal amount, ModelStateDictionary ModelState) { try { AccountAdapter accountAdapter = new AccountAdapter(account); accountAdapter.Withdraw(amount); } catch (BusinessRulesException e) { ModelState.AddModelError(nameof(amount), e.errMsg); return; } }