/// <summary> /// Closes the account. /// </summary> /// <param name="account">The account.</param> public void CloseAccount(AccountBll account) { Check(account); account.Close(); accountRepository.Update(account.ToDalAccount()); context.Save(); }