private bool SpamCheck90Days(t_common_leads lead) { GenericRepository<t_common_leads> gnr = new GenericRepository<t_common_leads>(new sherlockEntities()); List<t_common_leads> spamEmails = (List<t_common_leads>)gnr.GetMany(x => x.first_name.Equals(lead.first_name) && x.last_name.Equals(lead.last_name) ); if (spamEmails.Count > 0) return true; return false; }