mvc select list order by

96

mvc select list order by -

List<Reason> reasonList = _db.Reasons.OrderBy(m=>m.Description).ToList();
ReasonList = new SelectList(reasonList, "Id", "Description");

Comments

Submit
0 Comments