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>()); }
private void TranslateCurriculumBDOToCurriculum(CurriculumBDO curriculum, Curriculum cbdo) { cbdo.CurrentCurr = curriculum.CurrentCurr; cbdo.CurriculumCode = curriculum.CurriculumCode; cbdo.Description = curriculum.Description; cbdo.CurriculumSubjects = ToCurriculumSubjectList(curriculum.CurriculumSubjects); }
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; }
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); }
public bool UpdateCurriculum(ref Curriculum curriculum, ref string message) { throw new NotImplementedException(); }
public bool CreateCurriculum(ref Curriculum curriculum, ref string message) { CurriculumBDO cbdo = new CurriculumBDO(); TranslateCurriculumToCurriculumBDO(curriculum, cbdo); return clogic.CreateCurriculum(ref cbdo, ref message); }
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>()); }
public bool UpdateCurriculum(ref Curriculum curriculum, ref string message) { CurriculumBDO cb = new CurriculumBDO(); TranslateCurriculumToCurriculumBDO(curriculum, cb); return clogic.UpdateCurriculum(ref cb, ref message); }