public ActionResult <IEnumerable <LeadDto> > GetAllLeads() { var leadsFromRepo = _leadsRepo.GetLeads(); if (leadsFromRepo == null) { return(NotFound()); } return(Ok(_mapper.Map <IEnumerable <LeadDto> >(leadsFromRepo))); }
public ActionResult <IEnumerable <LeadDto> > GetAllLeads() { var leadsFromRepo = _leadsRepo.GetLeads(); if (leadsFromRepo == null) { return(NotFound()); } return(Ok(_mapper.Map <IEnumerable <LeadDto> >(leadsFromRepo))); }