public IActionResult IndexNew()
        {
            var beer = new Beer();
            //returning only the first row
            var listOfBeers = beer.GetAllBeer().FirstOrDefault();

            return(View(listOfBeers));
        }
        public IActionResult Index()
        {
            ViewData["Message"] = "Razor is Awesome!";

            var beer        = new Beer();
            var listOfBeers = beer.GetAllBeer();

            return(View(listOfBeers));
        }
        public IActionResult Index()
        {
            ViewData["Message"] = "Razor is Awesome!";

            var beer  = new Beer();
            var model = beer.GetAllBeer();

            return(View(model));
        }