Example #1
0
 public bool Equals(TempSaleDTO other)
 {
     return(other != null
         ? CustomerName.Equals(other.CustomerName) &&
            ManagerName.Equals(other.ManagerName) &&
            ProductName.Equals(other.ProductName) &&
            SaleDate.Equals(other.SaleDate) &&
            SessionId.Equals(other.SessionId) &&
            Total.Equals(other.Total) &&
            Id.Equals(other.Id)
         : false);
 }
        public override bool Equals(object o)
        {
            var obj = o as ProfitAnalysis;

            if (obj == null)
            {
                return(base.Equals(o));
            }

            return
                (PurchaseDate.Equals(obj.PurchaseDate) &&
                 SaleDate.Equals(obj.SaleDate) &&
                 Profit.Equals(obj.Profit));
        }
Example #3
0
        public bool Equals(SaleDTO other)
        {
            if (other == null)
            {
                return(false);
            }

            bool res = Customer != null?Customer.Equals(other.Customer) : other.Customer == null;

            res &= Manager != null?Manager.Equals(other.Manager) : other.Manager == null;

            res &= Product != null?Product.Equals(other.Product) : other.Product == null;

            res &= SaleDate.Equals(other.SaleDate) && Total.Equals(other.Total) && Id.Equals(other.Id);

            return(res);
        }