Пример #1
0
        public ActionResult <LeadDto> GetLeadByName(string name)
        {
            var leadFromRepo = _leadsRepo.GetLeadByName(name);

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