Пример #1
0
 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());
 }
Пример #2
0
 public UserController()
 {
     userRepository = new UserRepository(new ApplicationDbContext());
     manualRepository = new ManualRepository(new ApplicationDbContext());
 }
Пример #3
0
 public UserController()
 {
     userRepository   = new UserRepository(new ApplicationDbContext());
     manualRepository = new ManualRepository(new ApplicationDbContext());
 }
Пример #4
0
 public HomeController(ApplicationDbContext context)
 {
     _manualRepository = new ManualRepository(context);
     _tagRepository    = new TagRepository(context);
 }