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; }
//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; }