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