Example #1
0
        public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var beer = _common.GetBeerViewModel(id);

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

            return(View(beer));
        }