Repository Pattern. EFCore. Single Responsibility (how much of it?)
https://paste.mod.gg/udwfheejnznx/0 here is the example of my 2 controller endpoints. there are 2 regions(#region IThinkISuccessfullyShovedToRepoitory AND #region IDonnoHowToShoveToRepos) in it 1 I think i have managed to cleanly convert, otherwise directly calling dbcontext in controller, to use repository. and 2nd region that I can't figure how much of what should go to each repo. So I understand that each repo should ideally be only using its own respective context (
BlogRepo
BlogRepo
only call
context.Blogs
context.Blogs
), but to what end? 100% is it a cardinal sin to include like and utlize