Ejemplo n.º 1
0
        public static string IssueRefund(string rmaNo, int zendeskTicketNo)
        {
            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}";
                }


                StaticService.IssueRefund(rmaNo, sessionID, zendeskTicketNo);

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

            return("Success");
        }