public override bool Equals(object obj) { var model = obj as AddReviewRequestModel; if (model == null) { return(false); } else { return(Comment.Equals(model.Comment) && DateTimePosted.Equals(model.DateTimePosted) && Rating.Equals(model.Rating) && RestaurantId.Equals(model.RestaurantId)); } }
public override int GetHashCode() { return(Comment.GetHashCode() + DateTimePosted.GetHashCode() + Rating.GetHashCode() + RestaurantId.GetHashCode()); }