Ejemplo n.º 1
0
        public void FromDto(AffiliateContactDTO dto)
        {
            if (dto == null) return;

            this.Id = dto.Id;
            this.AffiliateId = dto.AffiliateId;
            this.UserId = dto.UserId;
            this.StoreId = dto.StoreId;

        }
Ejemplo n.º 2
0
        //DTO
        public AffiliateContactDTO ToDto()
        {
            AffiliateContactDTO dto = new AffiliateContactDTO();
            
            dto.Id = this.Id;
            dto.AffiliateId = this.AffiliateId;
            dto.UserId = this.UserId;
            dto.StoreId = this.StoreId;

            return dto;
        }