Esempio n. 1
0
 public SectionHelper(API.LABURNUM.COM.Section section)
 {
     if (section == null)
     {
         throw new Exception(API.LABURNUM.COM.Component.Constants.ERRORMESSAGES.PARAMETER_CANNOT_BE_NULL);
     }
     ;
     this.Sections = new List <API.LABURNUM.COM.Section>();
     this.Sections.Add(section);
 }
Esempio n. 2
0
 private DTO.LABURNUM.COM.SectionModel MapCore(API.LABURNUM.COM.Section section)
 {
     DTO.LABURNUM.COM.SectionModel dtoSection = new DTO.LABURNUM.COM.SectionModel()
     {
         ClassId     = section.ClassId,
         SectionId   = section.SectionId,
         SectionName = section.SectionName,
         CreatedOn   = section.CreatedOn,
         IsActive    = section.IsActive,
         LastUpdated = section.LastUpdated
     };
     return(dtoSection);
 }