private void AddObjectInternal(int objectId, NewObjectParameters parameters) { var lengthLimit = RequestParser.ValidateObjectParameters(parameters); var internalParams = RequestParser.GetInternalNewObjectParameters(objectId, parameters); if (lengthLimit.Count > 0) { AddObjectWithExcessiveValue(lengthLimit, internalParams); } else { RequestEngine.ExecuteRequest(internalParams); } }
private async Task AddObjectInternalAsync(int objectId, NewObjectParameters parameters) { var lengthLimit = RequestParser.ValidateObjectParameters(parameters); var internalParams = RequestParser.GetInternalNewObjectParameters(objectId, parameters); if (lengthLimit.Count > 0) { await AddObjectWithExcessiveValueAsync(lengthLimit, internalParams).ConfigureAwait(false); } else { await RequestEngine.ExecuteRequestAsync(internalParams).ConfigureAwait(false); } }