So I tried every suggestion and I basically did dependency injection wrong and I just went and re-did everything and got it to work, I tried making a generic services for type T and having a generic database repo and I think that I did not do it properly