csharp get all id of list object
Code Example - csharp get all id of list object
Categories.Select(c => c.Id).ToList();
Categories.Select(c => c.Id).ToList();