コード例 #1
0
ファイル: TeacherService.cs プロジェクト: RazenRyne/eSAR
 public void TranslateTrainingSeminarBDOToTrainingSeminarDTO(TrainingSeminarBDO tc, TrainingSeminar tcbdo)
 {
     tcbdo.AreaOfTraining = tc.AreaOfTraining;
     tcbdo.ConductedBy = tc.ConductedBy;
     tcbdo.DateFrom = tc.DateFrom;
     tcbdo.DateTo = tc.DateTo;
     tcbdo.NoOfHours = tc.NoOfHours;
     tcbdo.TeacherId = tc.TeacherId;
     tcbdo.Title = tc.Title;
     tcbdo.TSID = tc.TSID;
 }
コード例 #2
0
ファイル: TeacherService.cs プロジェクト: RazenRyne/eSAR
 public List<TrainingSeminar> ToTrainSemDTO(List<TrainingSeminarBDO> teb)
 {
     List<TrainingSeminar> tebdoList = new List<TrainingSeminar>();
     foreach (TrainingSeminarBDO t in teb)
     {
         TrainingSeminar tebdo = new TrainingSeminar();
         TranslateTrainingSeminarBDOToTrainingSeminarDTO(t, tebdo);
         tebdoList.Add(tebdo);
     }
     return tebdoList;
 }