public StaffView(Staff Staff) : base(Staff.RID) { this.PreviousAttended = Staff.PreviousAttended; this.PreviousPositions = Staff.PreviousPositions; this.PreviousTalk = Staff.PreviousTalk; this.LeadershipPosition = Staff.LeadershipPosition; this.InterestedTalk = Staff.InterestedTalk; if ( Staff.FirstChoice != null ) this.FirstChoice = new StaffChoiceView( Staff.FirstChoice ); else this.FirstChoice = new StaffChoiceView(); if ( Staff.SecondChoice != null ) this.SecondChoice = new StaffChoiceView( Staff.SecondChoice ); else this.SecondChoice = new StaffChoiceView(); if ( Staff.ThirdChoice != null ) this.ThirdChoice = new StaffChoiceView( Staff.ThirdChoice ); else this.ThirdChoice = new StaffChoiceView(); this.AdditionalComments = Staff.AdditionalComments; }
public StaffInput( Staff model ) { this.PreviousAttended = model.PreviousAttended; this.PreviousPositions = model.PreviousPositions; this.PreviousTalk = model.PreviousTalk; this.InterestedTalk = model.InterestedTalk; if ( model.FirstChoice != null ) this.FirstChoice = model.FirstChoice.RID; if ( model.SecondChoice != null ) this.SecondChoice = model.SecondChoice.RID; if ( model.ThirdChoice != null ) this.ThirdChoice = model.ThirdChoice.RID; this.LeadershipPosition = model.LeadershipPosition; this.AdditionalComments = model.AdditionalComments; }