Example #1
0
 public MonthHelper(API.LABURNUM.COM.Month month)
 {
     if (month == null)
     {
         throw new Exception(API.LABURNUM.COM.Component.Constants.ERRORMESSAGES.PARAMETER_CANNOT_BE_NULL);
     }
     ;
     this.Months = new List <API.LABURNUM.COM.Month>();
     this.Months.Add(month);
 }
Example #2
0
 private DTO.LABURNUM.COM.MonthModel MapCore(API.LABURNUM.COM.Month apimonth)
 {
     DTO.LABURNUM.COM.MonthModel dtoMonth = new DTO.LABURNUM.COM.MonthModel()
     {
         MonthId     = apimonth.MonthId,
         MonthName   = apimonth.MonthName,
         CreatedOn   = apimonth.CreatedOn,
         IsActive    = apimonth.IsActive,
         LastUpdated = apimonth.LastUpdated
     };
     return(dtoMonth);
 }