Example #1
0
        // GET: Beers/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var beer = _common.GetBeerDetailsViewModel(id);

            if (beer == null)
            {
                return(NotFound());
            }

            return(View(beer));
        }