コード例 #1
0
ファイル: CurriculumService.cs プロジェクト: RazenRyne/DCFIv4
        private void TranslateCurriculumToCurriculumBDO(Curriculum curriculum, CurriculumBDO cbdo)
        {
            cbdo.CurrentCurr    = curriculum.CurrentCurr;
            cbdo.CurriculumCode = curriculum.CurriculumCode;
            cbdo.Description    = curriculum.Description;

            cbdo.CurriculumSubjects = ToCurriculumSubjectBDOList(curriculum.CurriculumSubjects.ToList <CurriculumSubject>());
        }
コード例 #2
0
ファイル: CurriculumService.cs プロジェクト: RazenRyne/DCFIv4
        private void TranslateCurriculumBDOToCurriculum(CurriculumBDO curriculum, Curriculum cbdo)
        {
            cbdo.CurrentCurr    = curriculum.CurrentCurr;
            cbdo.CurriculumCode = curriculum.CurriculumCode;
            cbdo.Description    = curriculum.Description;

            cbdo.CurriculumSubjects = ToCurriculumSubjectList(curriculum.CurriculumSubjects);
        }
コード例 #3
0
ファイル: CurriculumService.cs プロジェクト: dansalan/DCFIv5
 public List<Curriculum> GetAllCurriculums()
 {
     List<Curriculum> curList = new List<Curriculum>();
     foreach (CurriculumBDO curr in clogic.GetAllCurriculums())
     {
         Curriculum c = new Curriculum();
         TranslateCurriculumBDOToCurriculum(curr, c);
         curList.Add(c);
     }
     return curList;
 }
コード例 #4
0
ファイル: CurriculumService.cs プロジェクト: RazenRyne/DCFIv4
        public List <Curriculum> GetAllCurriculums()
        {
            List <Curriculum> curList = new List <Curriculum>();

            foreach (CurriculumBDO curr in clogic.GetAllCurriculums())
            {
                Curriculum c = new Curriculum();
                TranslateCurriculumBDOToCurriculum(curr, c);
                curList.Add(c);
            }
            return(curList);
        }
コード例 #5
0
ファイル: CurriculumService.cs プロジェクト: RazenRyne/DCFIv4
 public bool UpdateCurriculum(ref Curriculum curriculum, ref string message)
 {
     throw new NotImplementedException();
 }
コード例 #6
0
ファイル: CurriculumService.cs プロジェクト: dansalan/DCFIv5
 public bool CreateCurriculum(ref Curriculum curriculum, ref string message)
 {
     CurriculumBDO cbdo = new CurriculumBDO();
     TranslateCurriculumToCurriculumBDO(curriculum, cbdo);
     return clogic.CreateCurriculum(ref cbdo, ref message);
 }
コード例 #7
0
ファイル: CurriculumService.cs プロジェクト: dansalan/DCFIv5
 private void TranslateCurriculumToCurriculumBDO(Curriculum curriculum, CurriculumBDO cbdo)
 {
     cbdo.CurrentCurr = curriculum.CurrentCurr;
     cbdo.CurriculumCode = curriculum.CurriculumCode;
     cbdo.Description = curriculum.Description;
     cbdo.CurriculumSubjects = ToCurriculumSubjectBDOList(curriculum.CurriculumSubjects.ToList<CurriculumSubject>());
 }
コード例 #8
0
ファイル: CurriculumService.cs プロジェクト: dansalan/DCFIv5
 private void TranslateCurriculumBDOToCurriculum(CurriculumBDO curriculum, Curriculum cbdo)
 {
     cbdo.CurrentCurr = curriculum.CurrentCurr;
     cbdo.CurriculumCode = curriculum.CurriculumCode;
     cbdo.Description = curriculum.Description;
     cbdo.CurriculumSubjects = ToCurriculumSubjectList(curriculum.CurriculumSubjects);
 }
コード例 #9
0
ファイル: CurriculumService.cs プロジェクト: dansalan/DCFIv5
 public bool UpdateCurriculum(ref Curriculum curriculum, ref string message)
 {
     CurriculumBDO cb = new CurriculumBDO();
     TranslateCurriculumToCurriculumBDO(curriculum, cb);
        return clogic.UpdateCurriculum(ref cb, ref message);
 }
コード例 #10
0
 public bool UpdateCurriculum(ref Curriculum curriculum, ref string message)
 {
     throw new NotImplementedException();
 }