コード例 #1
0
ファイル: CircularHelper.cs プロジェクト: nishantchau/LAB
 public CircularHelper(API.LABURNUM.COM.Circular circular)
 {
     if (circular == null)
     {
         throw new Exception(API.LABURNUM.COM.Component.Constants.ERRORMESSAGES.PARAMETER_CANNOT_BE_NULL);
     }
     ;
     this.Circulars = new List <API.LABURNUM.COM.Circular>();
     this.Circulars.Add(circular);
 }
コード例 #2
0
ファイル: CircularHelper.cs プロジェクト: nishantchau/LAB
 private DTO.LABURNUM.COM.CircularModel MapCore(API.LABURNUM.COM.Circular apicircular)
 {
     DTO.LABURNUM.COM.CircularModel dtoClass = new DTO.LABURNUM.COM.CircularModel()
     {
         CircularId   = apicircular.CircularId,
         Attachment   = apicircular.Attachment,
         ClassIds     = apicircular.ClassIds,
         Details      = apicircular.Details,
         ExpiryOn     = apicircular.ExpiryOn,
         IsForAdmin   = apicircular.IsForAdmin,
         IsForFaculty = apicircular.IsForFaculty,
         IsForParents = apicircular.IsForParents,
         IsForStudent = apicircular.IsForStudent,
         PublishedOn  = apicircular.PublishedOn,
         Subject      = apicircular.Subject,
         CreatedOn    = apicircular.CreatedOn,
         IsActive     = apicircular.IsActive,
         LastUpdated  = apicircular.LastUpdated,
         IsEditable   = IsCircularEditable(apicircular.PublishedOn)
     };
     return(dtoClass);
 }