Example #1
0
 public virtual int ModifyProcessAgent(string originalGuid, ProcessAgent agent, string extra)
 {
     int status = 0;
     if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader))
     {
         DBManager dbManager = new DBManager();
         status = dbManager.ModifyProcessAgent(originalGuid, agent, extra);
     }
     return status;
 }
Example #2
0
        public override int ModifyDomainCredentials(string originalGuid, ProcessAgent agent, string extra, 
            Coupon inCoupon, Coupon outCoupon)
        {
            int status = 0;
            if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader))
            {
                DBManager dbManager = new DBManager();
                try
                {
                    status = dbManager.ModifyDomainCredentials(originalGuid, agent, inCoupon, outCoupon, extra);
                }
                catch (Exception ex)
                {
                    throw new Exception("USS: ", ex);
                }

            }
            return status;
        }