Ejemplo n.º 1
0
 public EventHelper(API.LABURNUM.COM.Event apiEvent)
 {
     if (apiEvent == null)
     {
         throw new Exception(API.LABURNUM.COM.Component.Constants.ERRORMESSAGES.PARAMETER_CANNOT_BE_NULL);
     }
     ;
     this.Events = new List <API.LABURNUM.COM.Event>();
     this.Events.Add(apiEvent);
 }
Ejemplo n.º 2
0
 private DTO.LABURNUM.COM.EventModel MapCore(API.LABURNUM.COM.Event apiEvent)
 {
     DTO.LABURNUM.COM.EventModel dtoClass = new DTO.LABURNUM.COM.EventModel()
     {
         EventId          = apiEvent.EventId,
         EventName        = apiEvent.EventName,
         EventTypeId      = apiEvent.EventTypeId,
         AcademicYearId   = apiEvent.AcademicYearId,
         Classes          = apiEvent.Classes,
         EventDate        = apiEvent.EventDate,
         EventTypeText    = apiEvent.EventType.Text,
         AcademicYearText = apiEvent.AcademicYearTable.StartYear + "-" + apiEvent.AcademicYearTable.EndYear,
         CreatedOn        = apiEvent.CreatedOn,
         IsActive         = apiEvent.IsActive,
         LastUpdated      = apiEvent.LastUpdated
     };
     return(dtoClass);
 }