示例#1
0
        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);
        }