distinctItems = result.Select((value, index) => new { index, value.PropertyID }) .DistinctBy(p => p.PropertyID) .ToDictionary(x => x.index, x => x.PropertyID);
.Select(x => new EventViewModel(x))