public IEnumerable <GatewayResourceDisplay> GetGatewayResources(Guid id) { try { var provider = _notificationContext.GetProviderByKey(id); var resources = provider.ListResourcesOffered(); return(resources.Select(resource => resource.ToGatewayResourceDisplay())); } catch (Exception) { throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound)); } }