public void GetRelatedLists(NewOrderVIewModel oVM) { UserManager userManager = new UserManager(); CarsManager carsManager = new CarsManager(); // 2) get all suppliers (id-name) var users = userManager.Users; // 3) get all categories (id-name) var cartyps = carsManager.CarsType; oVM.car = cartyps.Select(car => new SelectListItem() { Text = car.Manufacturer, Value = car.Manufacturer }).ToList(); oVM.user = users.Select(user => new SelectListItem() { Text = user.User_name, Value = user.User_name }).ToList(); //foreach (var user in users) //{ // SelectListItem item = new SelectListItem() // { // Text = user.User_name, // Value = user.User_name // }; // oVM.user.Add(item); //} userManager.Dispose(); carsManager.Dispose(); }