public HomeController() { authContext = new ApplicationDbContext(); manualRepository = new ManualRepository(new ApplicationDbContext()); categoryRepository = new CategoryRepository(new ApplicationDbContext()); tagRepository = new TagRepository(new ApplicationDbContext()); ratingRepository = new RatingRepository(new ApplicationDbContext()); }
public UserController() { userRepository = new UserRepository(new ApplicationDbContext()); manualRepository = new ManualRepository(new ApplicationDbContext()); }
public HomeController(ApplicationDbContext context) { _manualRepository = new ManualRepository(context); _tagRepository = new TagRepository(context); }