diff --git a/API_SQLuedo/Dto/LessonDTO.cs b/API_SQLuedo/Dto/LessonDTO.cs index 948455c..c1a5b1b 100644 --- a/API_SQLuedo/Dto/LessonDTO.cs +++ b/API_SQLuedo/Dto/LessonDTO.cs @@ -48,24 +48,24 @@ public class LessonDto : IEquatable return $"{Id}\t{Title}\t{LastPublisher}\t{LastEdit}"; } - public override bool Equals(object right) + public override bool Equals(object obj) { - if (object.ReferenceEquals(right, null)) + if (object.ReferenceEquals(obj, null)) { return false; } - if (object.ReferenceEquals(this, right)) + if (object.ReferenceEquals(this, obj)) { return true; } - if (this.GetType() != right.GetType()) + if (this.GetType() != obj.GetType()) { return false; } - return this.Equals(right as LessonDto); + return this.Equals(obj as LessonDto); } public bool Equals(LessonDto other) diff --git a/API_SQLuedo/Dto/ParagraphDTO.cs b/API_SQLuedo/Dto/ParagraphDTO.cs index 4e15e3e..eb7a41f 100644 --- a/API_SQLuedo/Dto/ParagraphDTO.cs +++ b/API_SQLuedo/Dto/ParagraphDTO.cs @@ -58,24 +58,24 @@ public class ParagraphDto : ContentLessonDto, IEquatable return $"{Id}\t{Title}\t{Content}\t{Info}\t{Query}\t{Comment}"; } - public override bool Equals(object right) + public override bool Equals(object obj) { - if (object.ReferenceEquals(right, null)) + if (object.ReferenceEquals(obj, null)) { return false; } - if (object.ReferenceEquals(this, right)) + if (object.ReferenceEquals(this, obj)) { return true; } - if (this.GetType() != right.GetType()) + if (this.GetType() != obj.GetType()) { return false; } - return this.Equals(right as ParagraphDto); + return this.Equals(obj as ParagraphDto); } public bool Equals(ParagraphDto other) diff --git a/API_SQLuedo/Dto/SuccessDTO.cs b/API_SQLuedo/Dto/SuccessDTO.cs index 7fd9a6a..4804afe 100644 --- a/API_SQLuedo/Dto/SuccessDTO.cs +++ b/API_SQLuedo/Dto/SuccessDTO.cs @@ -22,24 +22,24 @@ public class SuccessDto : IEquatable return $"User :{UserId}\t EnquĂȘte : {InquiryId}\t{IsFinished}"; } - public override bool Equals(object right) + public override bool Equals(object obj) { - if (object.ReferenceEquals(right, null)) + if (object.ReferenceEquals(obj, null)) { return false; } - if (object.ReferenceEquals(this, right)) + if (object.ReferenceEquals(this, obj)) { return true; } - if (this.GetType() != right.GetType()) + if (this.GetType() != obj.GetType()) { return false; } - return this.Equals(right as SuccessDto); + return this.Equals(obj as SuccessDto); } public bool Equals(SuccessDto other) diff --git a/API_SQLuedo/Dto/UserDTO.cs b/API_SQLuedo/Dto/UserDTO.cs index 0214520..076daa8 100644 --- a/API_SQLuedo/Dto/UserDTO.cs +++ b/API_SQLuedo/Dto/UserDTO.cs @@ -34,24 +34,24 @@ return $"{Id}\t{Username}\t{Email}\t{IsAdmin}"; } - public override bool Equals(object right) + public override bool Equals(object obj) { - if (object.ReferenceEquals(right, null)) + if (object.ReferenceEquals(obj, null)) { return false; } - if (object.ReferenceEquals(this, right)) + if (object.ReferenceEquals(this, obj)) { return true; } - if (this.GetType() != right.GetType()) + if (this.GetType() != obj.GetType()) { return false; } - return this.Equals(right as UserDto); + return this.Equals(obj as UserDto); } public bool Equals(UserDto other)