public string Status(GetSubordinateEmployees getSubordinates) { var sb = new StringBuilder(Status()); sb.AppendLine(); var subordinates = getSubordinates(this).OrderBy(emp => emp.LastName); foreach (var emp in subordinates) { sb.Append('\t').AppendLine(emp.ShortStatus()); } return(sb.ToString()); }
public IEnumerable <Employee> DirectSubordinates(GetSubordinateEmployees getSubordinates) { return(getSubordinates(this)); }