public async Task <AccountContract> Change([NotNull] string accountId,
                                                   [FromBody][NotNull] ChangeAccountRequest request)
        {
            if (request.IsDisabled == null &&
                request.IsWithdrawalDisabled == null)
            {
                return(await GetById(accountId));
            }

            try
            {
                var result = await _accountManagementService.UpdateAccountAsync(accountId,
                                                                                request.IsDisabled,
                                                                                request.IsWithdrawalDisabled);

                return(Convert(result));
            }
            catch (DisableAccountWithPositionsOrOrdersException)
            {
                throw new Exception(AccountsApiErrorCodes.DisableAccountWithPositionsOrOrders);
            }
        }