Exemple #1
0
        internal static IContactGroup ToDomain(this ContactGroupModel contactGroupModel)
        {
            NullGuard.NotNull(contactGroupModel, nameof(contactGroupModel));

            IContactGroup contactGroup = new ContactGroup(contactGroupModel.ContactGroupIdentifier, contactGroupModel.Name);

            contactGroup.AddAuditInformation(contactGroupModel.CreatedUtcDateTime, contactGroupModel.CreatedByIdentifier, contactGroupModel.ModifiedUtcDateTime, contactGroupModel.ModifiedByIdentifier);
            contactGroup.SetDeletable(contactGroupModel.Deletable);

            return(contactGroup);
        }