Example #1
0
 public UserTypeHelper(API.LABURNUM.COM.UserType userType)
 {
     if (userType == null)
     {
         throw new Exception(API.LABURNUM.COM.Component.Constants.ERRORMESSAGES.PARAMETER_CANNOT_BE_NULL);
     }
     ;
     this.UserTypes = new List <API.LABURNUM.COM.UserType>();
     this.UserTypes.Add(userType);
 }
Example #2
0
 private DTO.LABURNUM.COM.UserTypeModel MapCore(API.LABURNUM.COM.UserType userType)
 {
     DTO.LABURNUM.COM.UserTypeModel dtoUserType = new DTO.LABURNUM.COM.UserTypeModel()
     {
         Text        = userType.Text,
         UserTypeId  = userType.UserTypeId,
         CreatedOn   = userType.CreatedOn,
         IsActive    = userType.IsActive,
         LastUpdated = userType.LastUpdated
     };
     return(dtoUserType);
 }