Exemple #1
0
        private ActionResponse <Lead> duplicateCheck(int clientId, MortgageLead dataLead)
        {
            Lead lead = new Lead();

            //these need to initialized for DuplicateCheck
            lead.ClientID  = clientId;
            lead.UserID    = dataLead.UserId.ToInt();
            lead.FirstName = dataLead.Borrower?.FirstName;
            lead.LastName  = dataLead.Borrower?.LastName;
            lead.Email     = dataLead.ContactInfo?.Email;
            return(lead.DuplicateCheck(DataConnections.DataContextBankrateRead));
        }