Пример #1
0
 public AuthenticationController(IStudentService studentService, ITrafficMgtDbContext context, IAuthenticationService authenticationService, IUserService userService, IUnitOfWork unitOfWork)
 {
     this.authenticationService = authenticationService;
     this.userService           = userService;
     this.unitOfWork            = unitOfWork;
     this.context        = context;
     this.studentService = studentService;
 }
Пример #2
0
        public UnitOfWork(ITrafficMgtDbContext context)
        {
            this.context = context;

            Users            = new UserRepository(context);
            Menus            = new MenuRepository(context);
            RoleMenus        = new RoleMenuRepository(context);
            MenuGroups       = new MenuGroupRepository(context);
            UserRoles        = new UserRoleRepository(context);
            Ind              = new IncidentTypeRepository(context);
            ReportIncidents  = new ReportIncidentRepository(context);
            States           = new StatesRepository(context);
            LocalGovernments = new LocalGovtRepository(context);
        }
        public UnitOfWork(ITrafficMgtDbContext context)
        {
            this.context = context;

            Users            = new UserRepository(context);
            Menus            = new MenuRepository(context);
            RoleMenus        = new RoleMenuRepository(context);
            MenuGroups       = new MenuGroupRepository(context);
            UserRoles        = new UserRoleRepository(context);
            Ind              = new DepartmentRepository(context);
            Students         = new StudentRepository(context);
            Courses          = new CourseRepository(context);
            States           = new StatesRepository(context);
            LocalGovernments = new LocalGovtRepository(context);
        }
Пример #4
0
 public LocalGovtRepository(ITrafficMgtDbContext context) : base(context)
 {
     this.context = context;
 }
 public StatesRepository(ITrafficMgtDbContext context) : base(context)
 {
     this.context = context;
 }
Пример #6
0
 public MenuGroupRepository(ITrafficMgtDbContext context) : base(context)
 {
     this.context = context;
 }
Пример #7
0
 public RoleMenuRepository(ITrafficMgtDbContext context) : base(context)
 {
     this.context = context;
 }
 public CourseRepository(ITrafficMgtDbContext context) : base(context)
 {
     this.context = context;
 }
 public DepartmentRepository(ITrafficMgtDbContext context) : base(context)
 {
     this.context = context;
 }
 public ReportIncidentRepository(ITrafficMgtDbContext context) : base(context)
 {
     this.context = context;
 }
 public UserRoleRepository(ITrafficMgtDbContext context) : base(context)
 {
     this.context = context;
 }
 public Repository(ITrafficMgtDbContext context)
 {
     this.context = context;
 }