It fails to compile because you specific generic types with one single parameter, but you defined types with two parameters.
So you should use IGenericRepository<,>
and GenericRepository<,>
instead of IGenericRepository<>
and GenericRepository<>
.