Ejemplo n.º 1
0
 public void UpdateEventType(TimelineEventTypeHubSpotModel entity)
 => _client.ExecuteOnly(GetRoute <TimelineEventTypeHubSpotModel>(entity.Id.ToString()), entity, RestSharp.Method.PUT);
Ejemplo n.º 2
0
 public Task UpdateEventTypeAsync(TimelineEventTypeHubSpotModel entity, CancellationToken cancellationToken = default)
 => _client.ExecuteOnlyAsync(GetRoute <TimelineEventTypeHubSpotModel>(entity.Id.ToString()), entity, RestSharp.Method.PUT, cancellationToken);
Ejemplo n.º 3
0
 public void CreateEventType(TimelineEventTypeHubSpotModel entity)
 => _client.ExecuteOnly(GetRoute <TimelineEventHubSpotModel>(), entity, RestSharp.Method.POST);
Ejemplo n.º 4
0
 public Task CreateEventTypeAsync(TimelineEventTypeHubSpotModel entity, CancellationToken cancellationToken = default)
 => _client.ExecuteOnlyAsync(GetRoute <TimelineEventHubSpotModel>(), entity, RestSharp.Method.POST, cancellationToken);