public static ServiceCommunityAssociation toServiceCommunityAssociation(this ServiceCommunityAssociationV1DTO item) { if (item == null) { throw new ArgumentException(nameof(item)); } ServiceCommunityAssociation serviceCommunityAssociation = new ServiceCommunityAssociation(); serviceCommunityAssociation.CopyFromServiceCommunityAssociationV1DTO(item); return(serviceCommunityAssociation); }
public static void CopyFromServiceCommunityAssociation(this ServiceCommunityAssociationV1DTO to, ServiceCommunityAssociation from) { to.ServiceCommunityAssociationId = from.ServiceCommunityAssociationId; to.ServiceId = from.ServiceId; to.CommunityId = from.CommunityId; }