示例#1
0
        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));
        }
示例#2
0
 public bool Execute(int employeeId)
 {
     return(gateway.DeleteEmployee(employeeId));
 }