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); }
public FactoriesController() { db = new MI_Context(); factoryRepository = new Repository <Factory>(db); factoryService = new FactoryService(factoryRepository); userRepository = new Repository <User>(db); userService = new UserService(userRepository); }
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); }
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); }
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); }
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); }