public async Task <IActionResult> DeletePublishedProviders(
            [FromRoute] string fundingStreamId,
            [FromRoute] string fundingPeriodId)
        {
            if (_featureToggle.IsDeletePublishedProviderForbidden())
            {
                return(Forbid());
            }

            await _deletePublishedProvidersService.QueueDeletePublishedProvidersJob(fundingStreamId,
                                                                                    fundingPeriodId,
                                                                                    Request.GetCorrelationId());

            return(Ok());
        }
Exemple #2
0
 private void GivenThatDeletingPublishedProvidersIsForbidden()
 {
     _featureToggle
     .IsDeletePublishedProviderForbidden()
     .Returns(true);
 }