Пример #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));
        }