public HttpResponseMessage Get()
 {
     var collectionResource = new CollectionResource<BarResource>();
     collectionResource.Links.Add(new Link("self", "/BarCollection"));
     var resource = new BarResource();
     resource.Links.Add(new Link("self", "/Bar/1"));
     collectionResource.Items.Add(resource);
     return Request.CreateResponse(collectionResource);
 }
 public HttpResponseMessage Get(int id)
 {
     var resource = new BarResource();
     resource.Links.Add(new Link("self", "/Bar/1"));
     return Request.CreateResponse(resource);
 }