public TaxonomyResponse ExecutePatch(int id, TaxonomyRequest requestParams) { if (!requestParams.IsValid()) { throw new InvalidOperationException("vocabulary_id must be provided and can only be 1 or 2."); } var gatewayResponse = _taxonomyGateway.PatchTaxonomy(id, requestParams.ToEntity()); return(gatewayResponse == null ? null : gatewayResponse.ToResponse()); }