Exemple #1
0
        public List <LeadSource> GetLeadSourceList()
        {
            List <LeadSource> leadSource = new List <LeadSource>();
            LeadSource        lead       = new LeadSource();
            var leadResult = _LeadProvider.GetLeadSourceList();

            foreach (var items in leadResult)
            {
                lead.LeadSourceId   = items.LeadSourceId;
                lead.LeadSourceName = items.LeadSourceName;
                lead.LeadStatus     = items.LeadStatus;
                leadSource.Add(lead);
            }
            return(leadSource);
        }
Exemple #2
0
 public IHttpActionResult GetLeadSource()
 {
     //Implement Validation Part
     return(Ok <List <DLLeadSource> >(_LeadProvider.GetLeadSourceList()));
 }