c# linq remove duplicates from list based on property code example
Example: c# list remove item based on property duplicate
fooArray.GroupBy(x => x.Id).Select(x => x.First());
fooArray.GroupBy(x => x.Id).Select(x => x.First());