Example #1
0
        public void AlterarSenhaUsuario(ModeloAlterarSenhaUserDTO modeloAlterarSenhaUserDTO)
        {
            if (string.IsNullOrEmpty(modeloAlterarSenhaUserDTO.Email))
            {
                throw new Exception("O campo e-mail é obrigatorio");
            }

            if (string.IsNullOrEmpty(modeloAlterarSenhaUserDTO.Senha))
            {
                throw new Exception("O campo senha é obrigatorio");
            }

            var objEntity = _mapper.Map <ModeloAlterarSenhaUser>(modeloAlterarSenhaUserDTO);

            _serviceUsuario.AlterarSenhaUsuario(objEntity);
        }