Exemplo n.º 1
0
        public void SubscribeToTicket(int ticketID)
        {
            Tickets tickets = new Tickets(UserSession.LoginUser);

            if (Tickets.IsUserSubscribed(UserSession.LoginUser, UserSession.LoginUser.UserID, ticketID))
            {
                tickets.RemoveSubscription(UserSession.LoginUser.UserID, ticketID);
            }
            else
            {
                tickets.AddSubscription(UserSession.LoginUser.UserID, ticketID);
            }
        }