Esempio n. 1
0
        public ActionResult <LeadDto> GetLeadById(int id)
        {
            var leadFromRepo = _leadsRepo.GetLeadById(id);

            if (leadFromRepo != null)
            {
                return(Ok(_mapper.Map <LeadDto>(leadFromRepo)));
            }
            return(NotFound());
        }