public override bool Equals(object obj) { userBookDto Right = obj as userBookDto; if (Right == null) { return(false); } if (this.GetType() != Right.GetType()) { return(false); } if (Object.ReferenceEquals(this, Right)) { return(true); } return(this.bookId == Right.bookId); }
public int GetHashCode(userBookDto obj) { return(obj.bookId); }