Ejemplo n.º 1
0
 public BranchBM(BranchDTO branchDto, AddressBM addressBm)
 {
     this.id      = branchDto.id;
     this.name    = branchDto.name;
     this.comment = branchDto.comment;
     this.address = addressBm;
 }
Ejemplo n.º 2
0
 public DonorBM(DonorDTO donorDto, AddressBM addressBm = null, OrganizationBM organizationBm = null) : base(donorDto, addressBm)
 {
     this.address        = addressBm;
     this.donorId        = donorDto.donorId;
     this.organization   = organizationBm;
     this.canBeContacted = donorDto.canBeContacted;
 }
Ejemplo n.º 3
0
 public BeneficiaryBM(BeneficiaryDTO beneficiaryDto, AddressBM address = null) : base(beneficiaryDto, address)
 {
     this.beneficiaryId = beneficiaryDto.beneficiaryId;
     this.destination   = beneficiaryDto.destination;
     this.ages          = beneficiaryDto.ages;
     this.health        = beneficiaryDto.health;
     this.accessibility = beneficiaryDto.accessibility;
     this.majorProblem  = beneficiaryDto.majorProblem;
     this.address       = address;
 }
Ejemplo n.º 4
0
 public PersonBM(string name, string lastName, DateTime birthDate, string email, string phone, char gender, int dni, AddressBM address)
 {
     this.name      = name;
     this.lastName  = lastName;
     this.birthdate = birthDate;
     this.email     = email;
     this.phone     = phone;
     this.gender    = gender;
     this.dni       = dni;
     this.address   = address;
 }
Ejemplo n.º 5
0
 public PersonBM(PersonDTO personDto, AddressBM address)
 {
     this.id        = personDto.id;
     this.name      = personDto.name;
     this.lastName  = personDto.lastName;
     this.birthdate = personDto.birthdate;
     this.email     = personDto.email;
     this.phone     = personDto.phone;
     this.gender    = personDto.gender;
     this.dni       = personDto.dni;
     this.address   = address;
 }
Ejemplo n.º 6
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;
 }
Ejemplo n.º 7
0
 public DepotBM(DepotDTO depotDto, AddressBM addressBm = null)
 {
     this.id      = depotDto.id;
     this.name    = depotDto.name;
     this.address = addressBm;
 }