public override bool Equals(object obj) { return(obj is ReviewModelForResponse response && Score == response.Score && Description.Equals(response.Description) && NameOfWhoComments.Equals(response.NameOfWhoComments) && LastNameOfWhoComments.Equals(response.LastNameOfWhoComments)); }
public override bool Equals(object obj) { return(obj is Review review && Id == review.Id && Description.Equals(review.Description) && Score == review.Score && NameOfWhoComments.Equals(review.NameOfWhoComments) && LastNameOfWhoComments.Equals(review.LastNameOfWhoComments) && IdOfReserve == review.IdOfReserve); }