public ActionResult <CompletedLeadDto> GetCompletedLeadById(int id) { var lostLeadFromRepo = _leadsRepo.GetLostLeadById(id); if (lostLeadFromRepo != null) { return(Ok(_mapper.Map <CompletedLeadDto>(lostLeadFromRepo))); } return(NotFound()); }