Exemple #1
0
 public PersonalView(Personal Personal)
     : base(Personal.RID)
 {
     this.FirstName = Personal.FirstName;
     this.LastName = Personal.LastName;
     if(Personal.Phone != null)
         this.Phone = new PhoneView(Personal.Phone);
     else
         this.Phone = new PhoneView( );
     this.Email = Personal.Email;
     this.Hobbies = Personal.Hobbies;
     if(Personal.TShirtSize != null)
         this.TShirtSize = new TShirtSizeView( Personal.TShirtSize );
     else
         this.TShirtSize = new TShirtSizeView( );
 }
Exemple #2
0
 public PersonalInput( Personal model )
 {
     this.FirstName = model.FirstName;
     this.LastName = model.LastName;
     if(model.Phone != null)
         this.Phone = new PhoneInput( model.Phone );
     else
         this.Phone = new PhoneInput();
     this.Email = model.Email;
     this.Hobbies = model.Hobbies;
     if ( model.TShirtSize != null )
         this.TShirtSize = model.TShirtSize.RID;
 }