Exemplo n.º 1
0
 public Guardian(guardian guardian)
 {
     if (guardian != null)
     {
         this.Id         = guardian.Id;
         this.Name       = guardian.Name;
         this.Phone      = guardian.Phone;
         this.Occupation = guardian.Occupation;
         this.Address    = guardian.Address;
         this.Relation   = new Relation(guardian.relation);
     }
 }
Exemplo n.º 2
0
        public guardian GetDataObject()
        {
            var dataObject = new guardian()
            {
                Id         = this.Id,
                Name       = this.Name,
                Phone      = this.Phone,
                Occupation = this.Occupation,
                Address    = this.Address,
                RelationId = this.RelationId
            };

            return(dataObject);
        }