Пример #1
0
        public string CreerNouveaucompte(string codecompte, string codeclient, string devise, float solde)
        {
            string resul = null;

            try
            {
                resul = CompteDal.CreerNouveaucompte(codecompte, codeclient, devise, solde);
            }
            catch (Exception ex) {
                throw new Exception(ex.Message);
            }
            return(resul);
        }
Пример #2
0
        public string DesactiverCompte(string codecompte)
        {
            string resul = null;

            try
            {
                resul = CompteDal.DesactiverCompte(codecompte);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resul);
        }
Пример #3
0
        public static string Depotcompte(string codecompte, float nouvosolde)
        {
            string resul = null;

            try
            {
                resul = CompteDal.Depotcompte(codecompte, nouvosolde);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resul);
        }
Пример #4
0
        public static float retraitcompte(float a, float b)
        {
            float resul = 0;

            try
            {
                resul = CompteDal.retraitcompte(a, b);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resul);
        }
Пример #5
0
        public static string ModifierCompte(string codecompte, string devise, string typecompte, float solde)
        {
            string resul = null;

            try
            {
                resul = CompteDal.ModifierCompte(codecompte, devise, typecompte, solde);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resul);
        }
Пример #6
0
        public static Compte RechercherCpcl(string codecompte)
        {
            Compte resul = null;

            try
            {
                resul = CompteDal.RechercherCpCL(codecompte);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resul);
        }
Пример #7
0
        public static string Virement(string codecompte1, string codecompte2, float montant, string dattransaction, string utitisteur)
        {
            string resul = null;

            try
            {
                resul = CompteDal.Virement(codecompte1, codecompte2, montant, dattransaction, utitisteur);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resul);
        }
Пример #8
0
        public static string Pret(string codecompte, float pret, string datepret, string dateremise)
        {
            string resul = null;

            try
            {
                resul = CompteDal.Pret(codecompte, pret, datepret, dateremise);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resul);
        }
Пример #9
0
        public static List <Compte> TousComptec(string parametre)
        {
            List <Compte> l = null;

            try
            {
                l = CompteDal.Touscomptec(parametre);
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }


            return(l);
        }