public override bool Equals(object obj) { return(obj is Reserve reserve && Name.Equals(reserve.Name) && LastName.Equals(reserve.LastName) && Email.Equals(reserve.Email) && TotalPrice.Equals(reserve.TotalPrice) && EqualityComparer <Lodging> .Default.Equals(LodgingOfReserve, reserve.LodgingOfReserve) && DateTime.Compare(CheckIn, reserve.CheckIn) == 0 && DateTime.Compare(CheckOut, reserve.CheckOut) == 0 && StateOfReserve.Equals(reserve.StateOfReserve)); }
private bool Equals(OutputDtoQueryOrder other) { return(Id == other.Id && IsPaid == other.IsPaid && TotalPrice.Equals(other.TotalPrice) && Ordered.Equals(other.Ordered) && ListEquals(OrderedItems, other.OrderedItems)); }
protected bool Equals(NewOrderInfoModel other) { return(ClientId == other.ClientId && OrderDate == other.OrderDate && StatusesId == other.StatusesId && OrderReview == other.OrderReview && TotalPrice.Equals(other.TotalPrice) && Equals(ProductsInOrder, other.ProductsInOrder)); }
private bool Equals(OutputDtoQueryUserBaggedItem other) { return(BagOwner.Equals(other.BagOwner) && TotalPrice.Equals(other.TotalPrice) && ListEquals(Items, other.Items)); }