コード例 #1
0
 public CurriculumDetailHelper(API.LABURNUM.COM.CurriculumDetail curriculumDetail)
 {
     if (curriculumDetail == null)
     {
         throw new Exception(API.LABURNUM.COM.Component.Constants.ERRORMESSAGES.PARAMETER_CANNOT_BE_NULL);
     }
     ;
     this.CurriculumDetails = new List <API.LABURNUM.COM.CurriculumDetail>();
     this.CurriculumDetails.Add(curriculumDetail);
 }
コード例 #2
0
 private DTO.LABURNUM.COM.CurriculumDetailModel MapCore(API.LABURNUM.COM.CurriculumDetail curriculumDetail)
 {
     DTO.LABURNUM.COM.CurriculumDetailModel dtoCurriculumDetail = new DTO.LABURNUM.COM.CurriculumDetailModel()
     {
         CurriculumId       = curriculumDetail.CurriculumId,
         SubjectId          = curriculumDetail.SubjectId,
         CurriculumDetailId = curriculumDetail.CurriculumDetailId,
         Syllabus           = curriculumDetail.Syllabus,
         Activity           = curriculumDetail.Activity,
         SubjectName        = curriculumDetail.Subject.SubjectName,
         CreatedOn          = curriculumDetail.CreatedOn,
         IsActive           = curriculumDetail.IsActive,
         LastUpdated        = curriculumDetail.LastUpdated
     };
     return(dtoCurriculumDetail);
 }