public ClientesDto GetByEmail(string email) { ClientesDto cliente; ClientesEntity clientesEntityEntry; clientesEntityEntry = clienteRepository.GetByEmail(email); IMapper iMapper = ServiceConfigAutomapper.configLeer.CreateMapper(); cliente = iMapper.Map <ClientesDto>(clientesEntityEntry); return(cliente); }