public bool Execute(int cityId) { var employees = gateway.LoadAllEmployees(); foreach (var e in employees) { if (e.BirthCity.Id == cityId) { gateway.DeleteEmployee(e.Id); } } return(gateway.DeleteCity(cityId)); }
public List <Employee> Execute() { return(gateway.LoadAllEmployees()); }