Why am I getting the error “Cannot instantiate implementation type” for my generic service?

前端 未结 4 1992
挽巷
挽巷 2021-02-12 09:12

I have a generic repository that I have been instantiating right in my WEB API Controller no problem for a while.

This is what my controller used to look like:



        
4条回答
  •  情深已故
    2021-02-12 10:12

    This happened to me when service class didn't inherit from IService interface

提交回复
热议问题