You should create a ViewModel class. For example MyNewViewModel and declare the two List of properties in this class like below
public class MyNewViewModel
{
public MyNewViewModel()
{
UserProfiles=new List<userprofile>();
Tasks =new List<task>();
}
public List<userprofile> UserProfiles{get;set;}
public List<task> Tasks {get;set;}
}
In the view use the model MyNewViewModel
@model MyNewViewModel
{
}
@foreach (var item in Model.UserProfiles) {
}
@foreach (var item in Model.Tasks ) {
}
Hope this helps