public ActionResult <Beer> GetBeer(int id) { Beer existingBeer = beerDAO.GetBeer(id); if (existingBeer != null) { return(Ok(existingBeer)); } else { return(NotFound()); } }
public Beer GetABeer(int id) { return(beerDAO.GetBeer(id)); }