public virtual bool CancelTicket(Coupon coupon, string type, string redeemer) { bool status = false; ProcessAgentDB dbTicketing = new ProcessAgentDB(); if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader)) { if (ProcessAgentDB.ServiceGuid.Equals(redeemer)) { status = dbTicketing.DeleteTicket(coupon, type, ProcessAgentDB.ServiceGuid); } else { status = false; } } return status; }