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; }
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; }