Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            CustomerCategory CustomersCategory = obj as CustomerCategory;

            if (CustomersCategory == null)
            {
                return(false);
            }

            if (this.CategoryID == CustomersCategory.CategoryID)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
 public CustomerCategoryManager(CustomerCategory _CustomersCategory)
 {
     CustomersCategory = _CustomersCategory;
 }