Beispiel #1
0
 public ClassSubjectFacultyTableHelper(API.LABURNUM.COM.ClassSubjectFacultyTable classSubjectFacultyTable)
 {
     if (classSubjectFacultyTable == null)
     {
         throw new Exception(API.LABURNUM.COM.Component.Constants.ERRORMESSAGES.PARAMETER_CANNOT_BE_NULL);
     }
     ;
     this.ClassSubjectFacultyTables = new List <API.LABURNUM.COM.ClassSubjectFacultyTable>();
     this.ClassSubjectFacultyTables.Add(classSubjectFacultyTable);
 }
Beispiel #2
0
 private DTO.LABURNUM.COM.ClassSubjectFacultyTableModel MapCore(API.LABURNUM.COM.ClassSubjectFacultyTable apiModel)
 {
     DTO.LABURNUM.COM.ClassSubjectFacultyTableModel dtoClass = new DTO.LABURNUM.COM.ClassSubjectFacultyTableModel()
     {
         ClassSubjectFacultyTableId = apiModel.ClassSubjectFacultyTableId,
         ClassId        = apiModel.ClassId,
         SubjectId      = apiModel.SubjectId.GetValueOrDefault() != 0 ? apiModel.SubjectId : null,
         FacultyId      = apiModel.FacultyId,
         SectionId      = apiModel.SectionId,
         CreatedOn      = apiModel.CreatedOn,
         LastUpdated    = apiModel.LastUpdated,
         IsActive       = apiModel.IsActive,
         ClassName      = apiModel.Class.ClassName,
         SubjectName    = apiModel.SubjectId.GetValueOrDefault() != 0 ? apiModel.Subject.SubjectName : "",
         FacultyName    = apiModel.Faculty.FacultyName,
         SectionName    = apiModel.Section.SectionName,
         FacultyContact = apiModel.Faculty.ContactNumber,
         FacultyEmail   = apiModel.Faculty.Email,
     };
     return(dtoClass);
 }