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