db.Somethingにリストデータが格納されてる状態で
Dateをトリガーに降順にするには、以下のようにします。
public ActionResult search() { var somethings = db.Someting .OrderByDescending(a => a.Date); return View(articles); }
db.Somethingにリストデータが格納されてる状態で
Dateをトリガーに降順にするには、以下のようにします。
public ActionResult search() { var somethings = db.Someting .OrderByDescending(a => a.Date); return View(articles); }