Ejemplo n.º 1
0
 public EmergencyInput( Emergency model )
 {
     this.FirstName = model.FirstName;
     this.LastName = model.LastName;
     this.Email = model.Email;
     if ( model.Phone != null )
         this.Phone = new PhoneInput( model.Phone );
     else
         this.Phone = new PhoneInput();
 }
Ejemplo n.º 2
0
 public EmergencyView(Emergency Emergency)
     : base(Emergency.RID)
 {
     this.FirstName = Emergency.FirstName;
     this.LastName = Emergency.LastName;
     this.Email = Emergency.Email;
     if ( Emergency.Phone != null )
         this.Phone = new PhoneView(Emergency.Phone);
     else
         this.Phone = new PhoneView( );
 }