Combine employee names with their department (string format)?
Combine employee names with their department (string format)
var combined = employees.Select(e => $"{e.Name} - {e.Department}");
Combine employee names with their department (string format)
var combined = employees.Select(e => $"{e.Name} - {e.Department}");