static IPosition GetPosition(IContact contact, IObjectHelper objectHelper) { string positionTitle = "a pretty good job for a really good guy"; IPosition position = objectHelper.CreatePosition(); position.Title = positionTitle; if (contact.Department != null) { position.AddDepartment(contact.Department); contact.Department.AddPositions(position); } contact.SetPosition(position); return(position); }