Beispiel #1
0
        public void GetAllClientInfo(out string username, out string mail, out decimal money)
        {
            BankUtil bankUt = new BankUtil();

            clnUtil.GetClientInfo(clnId, out username, out mail);
            money = bankUt.GetClientsAmount(clnId);
        }
Beispiel #2
0
        public void GetClientInfoFromRedis(int clnId, ref string name, ref string email, ref string money, ref string booked)
        {
            ClientTracker clnTrack = new ClientTracker();

            clnTrack.Start_Tracking();

            ClientUtil clnUt = new ClientUtil();
            BankUtil   bnkUt = new BankUtil();

            clnUt.GetClientInfo(clnId, out name, out email);
            money = bnkUt.GetClientsAmount(clnId).ToString();

            var row = clnTrack.GetClientBookedTotal(clnId).First();

            booked = row.GetValue <int>("system.sum(action)").ToString();
        }