public IEnumerable<Domain.Beer> GetBeers()
 {
     using (BeerContainer db = new BeerContainer())
     {
         return db.Beers.Select(b => new Domain.Beer() { Id = b.Id, Name = b.Name, ImageUrl = b.Photo }).ToList();
     }
 }
 public Domain.Beer GetBeer(int id)
 {
     using (BeerContainer db = new BeerContainer())
     {
         Beer dbBeer = db.Beers.SingleOrDefault(b => b.Id == id);
         return (dbBeer != null) ? new Domain.Beer() { Id = dbBeer.Id, Name = dbBeer.Name, ImageUrl = dbBeer.Photo } : null;
     }
 }