Пример #1
0
        //ver esto porque no debería recibirse un PersonBM
        public VolunteerBM(PersonBM personBm, BranchBM branchBm, UserBM userBm = null)
        {
            this.id        = personBm.id;
            this.name      = personBm.name;
            this.lastName  = personBm.lastName;
            this.Birthdate = personBm.Birthdate;
            this.Email     = personBm.Email;
            this.phone     = personBm.phone;
            this.gender    = personBm.gender;
            this.dni       = personBm.dni;
            this.address   = personBm.address;

            this.branch = branchBm;
            this.user   = userBm;
        }
Пример #2
0
 public VolunteerBM(VolunteerDTO volunteerDto, AddressBM addressBm, BranchBM branchBm, UserBM userBm = null)
 {
     this.id          = volunteerDto.id;
     this.name        = volunteerDto.name;
     this.lastName    = volunteerDto.lastName;
     this.Birthdate   = volunteerDto.birthdate;
     this.Email       = volunteerDto.email;
     this.phone       = volunteerDto.phone;
     this.gender      = volunteerDto.gender;
     this.dni         = volunteerDto.dni;
     this.address     = addressBm;
     this.volunteerId = volunteerDto.volunteerId;
     this.branch      = branchBm;
     this.user        = userBm;
 }