public IActionResult Bars()
        {
            var bars     = this.db.Bars.ToList().OrderByDescending(b => b.CreatedOn);
            var barModel = new BarsViewModel
            {
                Bars = bars
            };

            return(View(barModel));
        }
Example #2
0
        public IActionResult Bars()
        {
            var bars     = this.db.Bars.ToList();
            var barModel = new BarsViewModel
            {
                Bars = bars
            };

            return(View(barModel));
        }