Ejemplo n.º 1
0
 public static bool HasEmployee(this Firm firm, Employee emp) => firm.Employees.Any(e => e == emp);
Ejemplo n.º 2
0
 public static int CountByType(this Firm firm, string type) => firm.Employees.Where(e => e.GetType().ToString().Replace("FirmProject.Employees.", "").ToLower() == type.ToLower()).ToList().Count;