Answers for "mvc select list order by"

C#
1

mvc select list order by

List<Reason> reasonList = _db.Reasons.OrderBy(m=>m.Description).ToList();
ReasonList = new SelectList(reasonList, "Id", "Description");
Posted by: Guest on November-27-2020

C# Answers by Framework

Browse Popular Code Answers by Language