public IEnumerable <TicketBase> GetTickets(RelationModel model) { TicketBox ticketBox = model.Retrieve <TicketBox>(); if (ticketBox != null) { return(ticketBox.GetTickets()); } return(Enumerable.Empty <TicketBase>()); }
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); } }