Ejemplo n.º 1
0
        public void Alterar(ClienteInformation cliente)

        {
            ClientesDAL obj = new ClientesDAL();

            obj.Alterar(cliente);
        }
Ejemplo n.º 2
0
        public void Alterar(ClienteInformation cliente)
        {
            if (cliente.Nome.Trim().Length == 0)
            {
                throw new Exception("O nome do clinte é obrigatório");
            }
            cliente.Email = cliente.Email.ToLower();

            ClientesDAL obj = new ClientesDAL();

            obj.Alterar(cliente);
        }
        public void Alterar(ClienteInformation cliente)
        {
            //O nome do cliente é obrigatório
            if (cliente.Nome.Trim().Length == 0)
            {
                throw new Exception("O nome do cliente é obrigatório");
            }

            //E-mail é sempre em letras minúsculas
            cliente.Email = cliente.Email.ToLower();

            //Se tudo está Ok, chama a rotina de alteração.
            ClientesDAL obj = new ClientesDAL();

            obj.Alterar(cliente);
        }
Ejemplo n.º 4
0
        public string Alterar(string cliente, string telefone, string end, int Id)
        {
            ClientesDAL obj = new ClientesDAL();

            return(obj.Alterar(cliente, telefone, end, Id));
        }