Saying error Interface is not accessible due to protection, but protection is public then why this e
I'm developing MVC app using Controllers and Models But showing this error:
Istudentrepository is Public interface still showing it's protected why this error?
3 Replies
GetAllStudents
is not public though
Also, you're instantiating the StudentRepository
class, not getting a IStudentRepository
injectedYeah the interface isn't involved at all here
You should be registering the repo to the interface in your app builder, then inject the interface
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.