public async Task <IActionResult> PreviousProfileExistsForSpecificationForProviderForFundingLine( string specificationId, string providerId, string fundingStreamId, string fundingLineCode) { ApiResponse <bool> fundingLineApiResponse = await _publishingApiClient .PreviousProfileExistsForSpecificationForProviderForFundingLine( specificationId, providerId, fundingStreamId, fundingLineCode); if (fundingLineApiResponse.StatusCode == HttpStatusCode.OK) { return(Ok(fundingLineApiResponse.Content)); } return(new InternalServerErrorResult($"An error occurred when checking for previous profiles.")); }