public ActionResult Index() { Dictionary <string, string> sortBy; Dictionary <string, bool> orderByDescending; actions.GetAvailableSortList(out sortBy, out orderByDescending); ViewBag.sortBy = sortBy.Select(item => new SelectListItem() { Text = item.Key, Value = item.Value }); ViewBag.orderByDescending = orderByDescending.Select(item => new SelectListItem() { Text = item.Key, Value = item.Value.ToString() }); return(View()); }