// GET beerdetail/5
        public BeerDetailRepresentation Get(int id)
        {
            var beer = beerDbContext.Beers.Include("Brewery").Include("Style").Single(br => br.Id == id); // lazy loading isn't on for this query; force loading
            var reviews = beerDbContext.Reviews
                .Where(r=>r.Beer_Id == id)
                .ToList()
                .Select(s => new ReviewRepresentation
                {
                    Id = s.Id,
                    Beer_Id = s.Beer_Id,
                    Title = s.Title,
                    Content = s.Content
                })
                .ToList();

            var detail = new BeerDetailRepresentation
            {
                Id = beer.Id,
                Name = beer.Name,
                Style = new BeerStyleRepresentation {Id = beer.Style.Id, Name = beer.Style.Name},
                Brewery = new BreweryRepresentation {Id = beer.Brewery.Id, Name = beer.Brewery.Name}
            };
            foreach (var review in reviews)
                detail.Reviews.Add(review);
            return detail;
        }
 // PUT beerdetail/5
 public void Put(int id, BeerDetailRepresentation beer)
 {
     // this is here just to see how the deserializer is working
     // we should get the links and all the embedded objects deserialized
     // we'd be better off creating a client to test the full deserializing, but this way is cheap for now
 }