Exemplo n.º 1
0
 public void editar(Clientes clientes)
 {
     try
     {
         clientesDAO.Editar(clientes);
     }
     catch (Exception erro)
     {
         throw erro;
     }
 }
Exemplo n.º 2
0
        public async Task <Clientes> Editar(Clientes cliente)
        {
            string error = cliente.Validation();

            if (error == null)
            {
                cliente.PrepareSave();
                return(await clientesDao.Editar(cliente));
            }
            else
            {
                throw new Exception(error);
            }
        }