Beispiel #1
0
        public string AddAccount(Account ac)
        {
            try
            {
                DatabaseController db = new DatabaseController();
                Client             c  = db.getClient(ac.AccountClientId);
                ac.AccountClient = c;

                db.createAccount(ac);
                return("Success!");
            }
            catch (Exception e)
            {
                return("Exception ocurred" + e.Message);
            }
        }
        public Client Get(int id)
        {
            DatabaseController db = new DatabaseController();

            return(db.getClient(id));
        }