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