Example #1
0
 public void GroupDBtoGroupDTO(GroupDB groupDB)
 {
     this.id = groupDB.id;
     this.nameOfSpecialization = groupDB.SpecializationDB.SpecializationCode;
     this.ProfessionLastName   = groupDB.ProfessionDB.nameOfProffession;
     this.CountCadets          = groupDB.CountCadets;
     this.numberOfGroup        = groupDB.numberOfGroup;
     this.info = groupDB.info;
 }
Example #2
0
 public CadetDB(GroupDB gr, Cadet cadet)
 {
     id                 = cadet.id;
     GroupDBid          = gr.id;
     GroupDB            = gr;
     lastName           = cadet.lastName;
     middleName         = cadet.middleName;
     firstName          = cadet.firstName;
     birthDay           = cadet.birthDay;
     pathPhotoBig       = cadet.pathPhotoBig;
     pathPhotoSmall     = cadet.pathPhotoSmall;
     Position           = cadet.Position;
     dateOfStartService = cadet.dateOfStartService;
     isMarried          = cadet.isMarried;
     militaryRank       = cadet.militaryRank;
     info               = cadet.info;
 }