public async Task <ErrorCodeResponse <TradingConditionErrorCodesContract> > UpdateClientTradingConditions([FromBody] UpdateClientTradingConditionRequest request) { var result = await _accountManagementService.UpdateClientTradingCondition(request.ClientId, request.TradingConditionId, request.Username); var response = new ErrorCodeResponse <TradingConditionErrorCodesContract>(); if (result.IsFailed) { response.ErrorCode = _convertService.Convert <TradingConditionErrorCodes, TradingConditionErrorCodesContract>(result.Error.Value); } return(response); }