I have list of objects with properties 
Id and Name.
 foreach (var x in mydata)
 {                
    var model = new MyViewModel()
    {
       Id = x.Days.Id,
       Name = x.Days.Name                                   
    };                                    
    models.Add(model);
 }
I'm returning list (models) which has duplicate items, how can I return list of distinct items inside?
 
     
     
    