public SalutationHelper(API.LABURNUM.COM.Salutation salutation) { if (salutation == null) { throw new Exception(API.LABURNUM.COM.Component.Constants.ERRORMESSAGES.PARAMETER_CANNOT_BE_NULL); } ; this.Salutations = new List <API.LABURNUM.COM.Salutation>(); this.Salutations.Add(salutation); }
private DTO.LABURNUM.COM.SalutationModel MapCore(API.LABURNUM.COM.Salutation salutation) { DTO.LABURNUM.COM.SalutationModel dtoClass = new DTO.LABURNUM.COM.SalutationModel() { SalutationId = salutation.SalutationId, Name = salutation.Name, CreatedOn = salutation.CreatedOn, IsActive = salutation.IsActive, LastUpdated = salutation.LastUpdated }; return(dtoClass); }