public ActionResult <IEnumerable <SentOutLeadDto> > GetAllSentOutLeads() { var sentOutLeadFromRepo = _leadsRepo.GetAllSentOutLeads(); if (sentOutLeadFromRepo != null) { return(Ok(_mapper.Map <IEnumerable <SentOutLeadDto> >(sentOutLeadFromRepo))); } return(NotFound()); }