public async Task <ResourceResultModel> GenerateHeader(SupportServiceResourceKey key, string id) { if (!_serviceConfiguration.ResourceExists(key)) { return new ResourceResultModel { StatusCode = HttpStatusCode.NotFound } } ; var resource = _serviceConfiguration.GetResource(key); var headerKey = resource.HeaderKey ?? key; var headerResource = _serviceConfiguration.GetResource(headerKey); var uri = new Uri(_serviceConfiguration.FindSiteBaseUriForManfiestElement(_sites, headerKey), headerResource.ResourceUrlFormat); var url = string.Format(uri.ToString(), id); return(await GetPage(url)); }