Пример #1
0
        public ActionResult <IEnumerable <LeadDto> > GetAllLeads()
        {
            var leadsFromRepo = _leadsRepo.GetLeads();

            if (leadsFromRepo == null)
            {
                return(NotFound());
            }

            return(Ok(_mapper.Map <IEnumerable <LeadDto> >(leadsFromRepo)));
        }