خرید بک لینک

Vote count: 0

I have this method and I have not been able to order my result. It wont order at all. Do you know what am doing wrong ?

        public IEnumerable<SelectListItem> GetBranches()
            {
                List<SelectListItem> objList = null;
                var strQuery = (from sl in _objDataCollection.Edmm_Tester
                    orderby sl.Code
                    select new SelectListItem() {Text = sl.Name, Value = sl.Code}).Distinct();

                objList = strQuery.ToList();

                retu objList;
            }

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 10 فروردين 1395 ساعت: 4:59

صفحه بندی