示例#1
0
 public Comment(Customer customer, Manifestation manifestation, string text, int rating)
 {
     Customer      = customer;
     Manifestation = manifestation;
     Text          = text;
     Rating        = rating;
 }
示例#2
0
        public Ticket(Manifestation manifestation, Customer customer, TicketTypeEnum type)
        {
            Id            = Guid.NewGuid().ToString("N").Substring(0, 10);
            Manifestation = manifestation;
            EventDateTime = Manifestation.DateTime;
            switch (type)
            {
            case TicketTypeEnum.REGULAR:
                break;

            case TicketTypeEnum.VIP:
                break;

            case TicketTypeEnum.FANPIT:
                break;
            }
            Status = StatusEnum.RESERVED;
        }