title: Unable to resolve service for type 'IRepositoryPMS.IProductRepository' while attempting to activate 'Controllers.HomeController'
body: <p>I am trying to register my repositories in a .NET Core environment. However, I am not able to resolve my repositories in the controller.</p>
  <p><a href="https://i.stack.imgur.com/wiPbx.png" rel="nofollow noreferrer">Here</a> is the error that I am dealing with is</p>
  <p>I have tried to add repository and IRepository in service. <a href="https://i.stack.imgur.com/OZuz0.png" rel="nofollow noreferrer">Here</a> is the registration method.</p>
  <p>also, I added on controller constructor. <a href="https://i.stack.imgur.com/QkMbI.png" rel="nofollow noreferrer">Screen shot</a> is here.</p>