예제 #1
0
 public CompleteSessionResult(SessionSqlEntity session, string trainingName, string location, string trainerLastname, string trainerFirstname, int color) : base(session)
 {
     Training = trainingName;
     Trainer  = new FullName(trainerLastname, trainerFirstname);
     Location = location;
     Color    = color;
 }
예제 #2
0
 public SessionResult(SessionSqlEntity entity)
 {
     if (entity == null)
     {
         throw new ArgumentNullException(nameof(entity));
     }
     SessionId     = entity.SessionId;
     TrainingId    = entity.TrainingId;
     SessionStart  = entity.SessionStart;
     Duration      = entity.Duration;
     Seats         = entity.Seats;
     ReservedSeats = entity.ReservedSeats;
     LocationId    = entity.LocationId;
     TrainerId     = entity.TrainerId;
     Canceled      = entity.Canceled;
     CancelReason  = entity.CancelReason;
 }