public UpdateAlertNotificationResponse UpdateAlertNotification(UpdateAlertNotificationRequest request) { if (request == null) { throw new ArgumentNullException(nameof(request)); } var task = Task.Run(() => UpdateAlertNotificationAsync(request)); task.Wait(); return(task.Result); }
public async Task <UpdateAlertNotificationResponse> UpdateAlertNotificationAsync(UpdateAlertNotificationRequest request) { if (request == null) { throw new ArgumentNullException(nameof(request)); } var response = await ExecutePutRequestAsync <UpdateAlertNotificationResponse, UpdateAlertNotificationRequest>($"/api/alert-notifications/{request.Id}", null, request, _authentication); return(response); }