示例#1
0
 public AttendanceClass5Helper(API.LABURNUM.COM.AttendanceClass5 Class)
 {
     if (Class == null)
     {
         throw new Exception(API.LABURNUM.COM.Component.Constants.ERRORMESSAGES.PARAMETER_CANNOT_BE_NULL);
     }
     ;
     this.AttendanceClass5 = new List <API.LABURNUM.COM.AttendanceClass5>();
     this.AttendanceClass5.Add(Class);
 }
示例#2
0
 private DTO.LABURNUM.COM.AttendanceClass5Model MapCore(API.LABURNUM.COM.AttendanceClass5 apiclass)
 {
     DTO.LABURNUM.COM.AttendanceClass5Model dtoClass = new DTO.LABURNUM.COM.AttendanceClass5Model()
     {
         AttendanceClass5Id    = apiclass.AttendanceClass5Id,
         ClassId               = apiclass.ClassId,
         SectionId             = apiclass.SectionId,
         StudentId             = apiclass.StudentId,
         MorningAttendanceDate = apiclass.MorningAttendanceDate,
         LunchAttendanceDate   = apiclass.LunchAttendanceDate.GetValueOrDefault().Year != 0001 ? apiclass.LunchAttendanceDate : null,
         IsPresentAfterLuch    = apiclass.IsPresentAfterLuch,
         IsPresentInMorning    = apiclass.IsPresentInMorning,
         CreatedOn             = apiclass.CreatedOn,
         IsActive              = apiclass.IsActive,
         LastUpdated           = apiclass.LastUpdated,
         StudentName           = apiclass.Student.FirstName + " " + apiclass.Student.MiddleName + " " + apiclass.Student.LastName,
         FatherName            = apiclass.Student.FatherName,
         AttendanceId          = apiclass.AttendanceClass5Id,
     };
     return(dtoClass);
 }