Пример #1
0
        public static string LegacyReturnLabel(string rmaNo, string email)
        {
            try
            {
                string sessionID = string.Empty;
                if (HttpContext.Current.Session["ActiveUser"] != null)
                {
                    User u = (User)HttpContext.Current.Session["ActiveUser"];
                    sessionID = u.SessionID;
                }
                else
                {
                    sessionID = "{A0A0A0A0-A0A0-A0A0-A0A0-A0A0A0A0A0A0}";
                }

                worker = new Thread(() =>
                {
                    try
                    {
                        StaticService.LegacyReturnLabel(rmaNo, email, sessionID);
                    }
                    catch (Exception workerE)
                    {
                        Log.Error(workerE.Message, workerE);
                    }
                });

                worker.Start();

                HttpContext.Current.Session["NoUserInteraction"] = true;
                HttpContext.Current.Session["UserInteraction"]   = true;
            }
            catch (Exception e)
            {
                return("Error - " + e.Message);
            }

            return("success");
        }