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); } var ticketBox = model.Retrieve <TicketBox>(); if (ticketBox == null) { return(false); } var pass = ticketBox.Check(specificName); model.Attach(ticketBox); return(pass); }