コード例 #1
0
        public ActionResult <IEnumerable <ValidatedLeadDto> > GetAllValidatedLeads()
        {
            var validatedLeadFromRepo = _leadsRepo.GetAllValidatedLeads();

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