Пример #1
0
        public int EnregistrerrClient(string id, string nom, string pre, string sexe, string adresse, string tel, string cin, string email)
        {
            int    resultat = 0;
            Client c1       = null;

            try
            {
                c1       = new Client(id, nom, pre, sexe, adresse, tel, cin, email);
                resultat = ClientDal.insererclient(c1);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resultat);
        }