I'm new to dtonet. I created repository and injected it into controller but got this error in controller constructor
Inconsistent accessibility: parameter type 'IContactRepository' is less accessible than method 'ContactController.ContactController(IContactRepository)'
You'll have to set IContactRepository
as public
in the file it is defined.
public interface IContactRepository {
...
}