public CreateAlertNotificationResponse CreateAlertNotification(CreateAlertNotificationRequest request) { if (request == null) { throw new ArgumentNullException(nameof(request)); } var task = Task.Run(() => CreateAlertNotificationAsync(request)); task.Wait(); return(task.Result); }
public async Task <CreateAlertNotificationResponse> CreateAlertNotificationAsync(CreateAlertNotificationRequest request) { if (request == null) { throw new ArgumentNullException(nameof(request)); } var response = await ExecutePostRequestAsync <CreateAlertNotificationResponse, CreateAlertNotificationRequest>("/api/alert-notifications", null, request, _authentication); return(response); }