Пример #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            ProductEN t = obj as ProductEN;

            if (t == null)
            {
                return(false);
            }
            if (ProductId.Equals(t.ProductId))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Пример #2
0
 public ProductEN(ProductEN product)
 {
     this.init(ProductId, product.Orderline, product.Name, product.Descripcion, product.PhotoURL, product.Price, product.Stock, product.Category);
 }