I am using ASP.NET MVC Entity Framework and I am trying to return two list to one view.
So far I am able to return one list:
public ActionResult Index()
{
return View(db.Data.ToList().Where(model => model.hidden == false).Where(model => model.collection == "Singles"));
}
I also need to return:
db.Data.ToList().Where(model => model.hidden == false).Where(model => model.collection == "Towns")