예제 #1
0
 public void Insert(Guid fid, string sessionId, string userEmailId, string userIP)
 {
     using (var connection = ConnectionFactory.GetConnection())
     {
         var sessionLogger = new ResellerClub.DataAccess.SessionLogger(connection);
         sessionLogger.Insert(fid, sessionId, userEmailId, userIP);
     }
 }
예제 #2
0
        public string GetUserEmail(Guid sessionId)
        {
            string userEmail = "";

            using (var connection = ConnectionFactory.GetConnection())
            {
                var sessionLogger = new ResellerClub.DataAccess.SessionLogger(connection);
                userEmail = sessionLogger.GetUserEmail(sessionId);
            }
            return(userEmail);
        }
예제 #3
0
        public void ProcessOrder(Guid orderId)
        {
            List <IOrderItemMessage> orderItem;
            Guid   sessionId;
            string userEmail;

            using (var connection = ConnectionFactory.GetConnection())
            {
                var order = new ResellerClub.DataAccess.Order(connection);
                orderItem = order.GetUnProcessedOrderItem(orderId);
                sessionId = order.GetSessionId(orderId);

                var session = new ResellerClub.DataAccess.SessionLogger(connection);
                userEmail = session.GetUserEmail(sessionId);
            }

            Customer customer = new Customer();

            customer.GetCustomerDetailByUserName(userEmail);
            customer.GetCustomerContactInfo(customer.CusInfo.CustomerID);
            Register(orderId, orderItem, customer.CusInfo);
            UpdateOrderStatus(orderId);
        }