You should change view return type of
IEnumerable<<Entity>> because this type is responsible for loading a collection of type,ie is the type now loading in the index view. if you want to load multiple collection you should create a new ViewModel class and add two property like below
public class HomeViewModel
{
public HomeViewModel()
{
Collection1=new List<yourfirstentity>();
Collection2=new List<loginuserdetails>();
}
public List<yourfirstentity> Collection1{get;set;}
public List<loginuserdetails> Collection2{get;set;}
}
}</loginuserdetails></yourfirstentity></loginuserdetails></yourfirstentity>
From the view you can iterate your both collection like below
@model HomeViewModel
{
}
@foreach (var item in Model.Collection1) {
}
@foreach (var item in Model.Collection2) {
}
I recommend you create a viewmodel for every page. Viewmodel nothing but the class which contains all the data needed for a particular view
Hope this helps