Exercise: Building Out the Repository Classes

In the Conduit.Repositories Project

Add IArticlesRepository Interface class without any method signatures

We're going to let Visual Studio do some work for us and create the method as we use them in the ArticlesController Class.

Add ArticlesRepository class and inject the following
  • IAccountRepository
  • IProfileRepository
  • ConduitContext
  • Imapper
  • Ilogger

In the Conduit.Models Project

Add ArticleNotFoundException

In the Exceptions namespace

In the next video I'll show you my solution.


I finished! On to the next chapter