Esempio n. 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);
        }
Esempio n. 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();
        }
Esempio n. 3
0
        private List <string> GetClnFromRedis(int clnId, int flightNum)
        {
            List <string> redisData = new List <string>();

            string username = "";
            string email    = "";

            ClientUtil clnUt = new ClientUtil();
            FlightUtil flUt  = new FlightUtil();

            clnUt.GetClientInfo(clnId, out username, out email);
            redisData.Add(username);
            redisData.Add(email);
            redisData.Add(flUt.GetFlightOrderAmount(flightNum, clnId).ToString());

            return(redisData);
        }