//Copy constructor protected GiftReward(GiftReward other) :base(other) { Name = other.Name; CategoryId = other.CategoryId; ProductId = other.ProductId; Quantity = other.Quantity; MeasureUnit = other.MeasureUnit; ImageUrl = other.ImageUrl; }
//Copy constructor protected GiftReward(GiftReward other) : base(other) { Name = other.Name; CategoryId = other.CategoryId; ProductId = other.ProductId; Quantity = other.Quantity; MeasureUnit = other.MeasureUnit; ImageUrl = other.ImageUrl; }
public PromotionReward[] GetRewards() { var retVal = new GiftReward { Name = Name, CategoryId = CategoryId, ProductId = ProductId, Quantity = Quantity, MeasureUnit = MeasureUnit, ImageUrl = ImageUrl, Description = Description }; return new PromotionReward[] { retVal }; }