private void AlertEmployee(Employee matcher, Employee matchee) { //TODO: email var blurb = "Hey, {0}, you've been matched with {1} {2} by the Random Act of Coffee bot! Check out their profile in Namely: {3}"; Console.WriteLine(blurb , matcher.FirstName , matchee.FirstName , matchee.LastName , GetNamelyProfileUrl((matchee.Id))); }
public List<Employee> TransformProfilesToEmployees(IEnumerable<Profile> profiles) { var employees = new List<Employee>(); foreach(Profile profile in profiles) { var employee = new Employee() { Id = profile.id, FirstName = String.IsNullOrEmpty(profile.preferred_name) ? profile.first_name : profile.preferred_name, LastName = profile.last_name, Email = profile.email, StateWorksIn = profile.office.state_id }; employees.Add(employee); } return employees; }