Пример #1
0
        public AuthenticationResponse GetExistingUserIDInDatabase(string userId, string password)
        {
            Hashtable request = new Hashtable();

            request.Add("userId", userId);
            request.Add("password", password);
            var data = JsonConvert.SerializeObject(request);

            var serviceReference = new JavaWebService.ServicesBLService();
            var response         = serviceReference.getLogin(data, userId);
            var auth             = JsonConvert.DeserializeObject <AuthenticationResponse>(response);

            return(auth);
        }
Пример #2
0
        public Shipping GetShipping(string deliveryOrderTag)
        {
            Hashtable request = new Hashtable();

            request.Add("doCode", deliveryOrderTag);
            var data = JsonConvert.SerializeObject(request);

            var    serviceReference = new JavaWebService.ServicesBLService();
            string userId           = Session.GetCurrentUser().UserID;
            var    response         = serviceReference.getShippingDetail(data, userId);
            var    shipping         = JsonConvert.DeserializeObject <Shipping>(response);

            return(shipping);
        }