Beispiel #1
0
 public BranchBM(BranchDTO branchDto, AddressBM addressBm)
 {
     this.id      = branchDto.id;
     this.name    = branchDto.name;
     this.comment = branchDto.comment;
     this.address = addressBm;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #7
0
 public DepotBM(DepotDTO depotDto, AddressBM addressBm = null)
 {
     this.id      = depotDto.id;
     this.name    = depotDto.name;
     this.address = addressBm;
 }