public ActionResult <CompletedLeadDto> CompleteLead(CreateCompletedLeadDto lead) { var leadModel = _mapper.Map <CompletedLead>(lead); _leadsRepo.CompleteLead(leadModel); _leadsRepo.Save(); var leadToReturn = _mapper.Map <CompletedLeadDto>(leadModel); return(CreatedAtRoute("GetCompletedLeadById", new { Id = leadModel.Id }, leadToReturn)); }