コード例 #1
0
        public ActionResult <IEnumerable <SentOutLeadDto> > GetAllSentOutLeads()
        {
            var sentOutLeadFromRepo = _leadsRepo.GetAllSentOutLeads();

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