public List <string> PeopleEmployeedWithinLocation_Classes(int amount) { LocationClass location = new LocationClass(); List <string> result = new List <string>(); List <PersonDataClass> input = service.GetPersonsInBatchClasses(amount); DateTime now = DateTime.Now; for (int i = 0; i < input.Count; ++i) { PersonDataClass item = input[i]; if (now.Subtract(item.BirthDate).TotalDays > 18 * 365) { var employee = service.GetEmployeeClass(item.EmployeeId); if (locationService.DistanceWithClass(location, employee.Address) < 10.0) { string name = string.Format("{0} {1}", item.Firstname, item.Lastname); result.Add(name); } } } return(result); }