You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
using Dto;
|
|
|
|
namespace TestAPI.Extensions;
|
|
|
|
class LessonIdEqualityComparer : EqualityComparer<LessonDto>
|
|
{
|
|
public override bool Equals(LessonDto x, LessonDto y)
|
|
{
|
|
return x.Id == y.Id;
|
|
}
|
|
|
|
public override int GetHashCode(LessonDto obj)
|
|
{
|
|
return obj.Id;
|
|
}
|
|
} |