Results 2 comments of Davron

//Insert AddCustomRepository services .AddDbContext(opt => opt.UseMySql(Configuration.GetConnectionString("DefaultConnection"), ass => ass.MigrationsAssembly(typeof(RssDbContext).Assembly.FullName))) .AddUnitOfWork() .AddCustomRepository() .AddCustomRepository(); //use custom repository private readonly IUnitOfWork db; private ILogger _logger; public UsersController(IUnitOfWork _db, ILogger logger) { db =...