public ActionResult <ValidatedLeadDto> ValideraLead([FromBody] CreateValidatedLeadDto lead) { var leadModel = _mapper.Map <ValidatedLead>(lead); _leadsRepo.ValidateLead(leadModel); _leadsRepo.Save(); var leadToReturn = _mapper.Map <ValidatedLeadDto>(leadModel); return(CreatedAtRoute("GetValidatedLeadById", new { Id = leadModel.Id }, leadToReturn)); }