protected IContact GetAssignToContact() { if (!chkAssignToSameContact.Checked) { // get the primary contact for the source account - if it is not the current contact IContact assignToContact = BusinessRuleHelper.GetPrimaryContact(Contact.Account); if (assignToContact != null && !assignToContact.Equals(Contact)) { return(assignToContact); } } else { IContact assignToContact = (IContact)((lueReassignOpenItems.LookupResultValue != null) ? lueReassignOpenItems.LookupResultValue : ((lueReassignClosedItems.LookupResultValue != null) ? lueReassignClosedItems.LookupResultValue : ((lueReassignSupportItems.LookupResultValue != null) ? lueReassignSupportItems.LookupResultValue : BusinessRuleHelper.GetPrimaryContact(Contact.Account)))); if (assignToContact != null && !assignToContact.Equals(Contact)) { return(assignToContact); } } return(null); }
protected IContact GetAssignToContact() { // get the primary contact for the source account - if it is not the current contact IContact assignToContact = BusinessRuleHelper.GetPrimaryContact(Contact.Account); if (assignToContact != null && !assignToContact.Equals(Contact)) { return(assignToContact); } return(null); }