Exemplo n.º 1
0
        public IEnumerable <TicketBase> GetTickets(RelationModel model)
        {
            TicketBox ticketBox = model.Retrieve <TicketBox>();

            if (ticketBox != null)
            {
                return(ticketBox.GetTickets());
            }
            return(Enumerable.Empty <TicketBase>());
        }
Exemplo n.º 2
0
        public bool CheckTicket(RelationModel model, string specificName)
        {
            if (specificName == "whosyourdaddy" && _daddy != null && _daddy == model.Identity.ToString())
            {
                return(true);
            }

            TicketBox ticketBox = model.Retrieve <TicketBox>();

            if (ticketBox == null)
            {
                return(false);
            }
            else
            {
                bool pass = ticketBox.Check(specificName);
                model.Attach(ticketBox);
                return(pass);
            }
        }