My model class
public class User
{
public string UserName { get; set; }
public string Password { get; set; }
public List<string> Clients { get; set; }
}
I've put my model class in session
Session[Constants.User] = user;
In my view I want to use my Session[Constants.User], take out the list of clients from the model object and display.. So far I've got object in view containing everything using this,
var clientsList = (Session[Constants.User]);
How to take out list from that and display? Thanks in advance...