Пример #1
0
 public Award(Performer performer, Entertainment entertainment, string name, string nomination, DateTime date,
              byte[] image) : base()
 {
     if (performer == null)
     {
         PerformerId = default(Guid?);
     }
     else
     {
         PerformerId = performer.Id;
     }
     if (entertainment == null)
     {
         EntertainmentId = default(Guid?);
     }
     else
     {
         EntertainmentId = entertainment.Id;
     }
     Name       = name;
     Nomination = nomination;
     Date       = date;
     Image      = image;
 }
Пример #2
0
 public PerformerInEntertainment(Performer performer, Entertainment entertainment, PerformerInEntertainment.Role performerRole) : base()
 {
     PerformerId     = performer.Id;
     EntertainmentId = entertainment.Id;
     PerformerRole   = performerRole;
 }