Exemple #1
0
        public void Incluir(ModeloUsuario modelo)
        {
            if (modelo.UsuLogin.Trim().Length == 0)
            {
                throw new Exception("O Login deve ser informado");
            }
            if (modelo.UsuGrupo.Trim().Length == 0)
            {
                throw new Exception("O Grupo de Login deve ser informado");
            }
            if (modelo.UsuNome.Trim().Length == 0)
            {
                throw new Exception("O Nome deve ser informado");
            }
            if (modelo.UsuSenha.Trim().Length == 0)
            {
                throw new Exception("A Senha deve ser informado");
            }

            DaoUsuario DALobj = new DaoUsuario(conexao);

            DALobj.Incluir(modelo);
        }