I'm having trouble sorting a list of dates from newest to oldest. Any ideas?
My code is as follow:
public async Task<IActionResult> Prices()
var allResults = from result in _context.Reviews
orderby result.Date descending
return View(await allResults.ToListAsync());
CS1061 'DbSet' does not contain a definition for
'OrderByDescending' and no extension method 'OrderByDescending'
accepting a first argument of type 'DbSet' could be found
(are you missing a using directive or an assembly reference?)