public Comment(Customer customer, Manifestation manifestation, string text, int rating) { Customer = customer; Manifestation = manifestation; Text = text; Rating = rating; }
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; }