public ActionResult Index() { UserRepository userRepo = new UserRepository(context); List <User> users = userRepo.GetUsers(); BenchRepository benchRepo = new BenchRepository(context); List <Bench> benches = benchRepo.GetBenches(); AllLists allLists = new AllLists(); allLists.Users = users; allLists.Benches = benches; return(View("Index", allLists)); }
// This adds to a WeakList, meaning that the list will still be discarded if all other references are lost public LoadedList(string name) { ListName = name; AllLists.Add(this); }