public async Task <IActionResult> GetFundingPeriodsByFundingStreamIds(string fundingStreamId) { ApiResponse <IEnumerable <Reference> > apiResponse = await _specificationsApiClient.GetFundingPeriodsByFundingStreamIds(fundingStreamId); if (apiResponse.StatusCode == HttpStatusCode.OK) { return(Ok(apiResponse.Content)); } if (apiResponse.StatusCode == HttpStatusCode.BadRequest) { return(new BadRequestResult()); } return(new StatusCodeResult(500)); }