コード例 #1
0
 public HatırlatıcıController()
 {
     db = new MI_Context();
     hatRepositoryBase = new Repository <Hatırlatıcı>(db);
     hatService        = new HatirlaticiService(hatRepositoryBase);
     userRepository    = new Repository <User>(db);
     userService       = new UserService(userRepository);
 }
コード例 #2
0
 public FactoriesController()
 {
     db = new MI_Context();
     factoryRepository = new Repository <Factory>(db);
     factoryService    = new FactoryService(factoryRepository);
     userRepository    = new Repository <User>(db);
     userService       = new UserService(userRepository);
 }
コード例 #3
0
 public AccountController()
 {
     db                = new MI_Context();
     userRepository    = new Repository <User>(db);
     userService       = new UserService(userRepository);
     roleRepository    = new Repository <Role>(db);
     roleService       = new RoleService(roleRepository);
     factoryRepository = new Repository <Factory>(db);
     factoryService    = new FactoryService(factoryRepository);
 }
コード例 #4
0
 public MachinesController()
 {
     db = new MI_Context();
     machineRepository = new Repository <Machine>(db);
     machineService    = new MachineService(machineRepository);
     secrepositoy      = new Repository <Section>(db);
     secService        = new SectionService(secrepositoy);
     userRepository    = new Repository <User>(db);
     userService       = new UserService(userRepository);
 }
コード例 #5
0
 public SectionsController()
 {
     db = new MI_Context();
     sectionRepository = new Repository <Section>(db);
     sectionService    = new SectionService(sectionRepository);
     factoryRepository = new Repository <Factory>(db);
     factoryService    = new FactoryService(factoryRepository);
     userRepository    = new Repository <User>(db);
     userService       = new UserService(userRepository);
 }
コード例 #6
0
 public HomeController()
 {
     db = new MI_Context();
     factoryRepository = new Repository <Factory>(db);
     factoryService    = new FactoryService(factoryRepository);
     userRepository    = new Repository <User>(db);
     userService       = new UserService(userRepository);
     machineRepository = new Repository <Machine>(db);
     machineService    = new MachineService(machineRepository);
     secrepositoy      = new Repository <Section>(db);
     secService        = new SectionService(secrepositoy);
     hatRepositoryBase = new Repository <Hatırlatıcı>(db);
     hatService        = new HatirlaticiService(hatRepositoryBase);
 }