Exemplo n.º 1
0
        public ActionResult <IEnumerable <CompletedLeadDto> > GetAllCompletedLeads()
        {
            var lostLeadFromRepo = _leadsRepo.GetAllLostLeads();

            return(Ok(_mapper.Map <IEnumerable <CompletedLeadDto> >(lostLeadFromRepo)));
        }