public override bool Equals(object obj) { Order order = obj as Order; if (order == null) return false; return order.Id == this.Id; }