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; }
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); }
public LocalGovtRepository(ITrafficMgtDbContext context) : base(context) { this.context = context; }
public StatesRepository(ITrafficMgtDbContext context) : base(context) { this.context = context; }
public MenuGroupRepository(ITrafficMgtDbContext context) : base(context) { this.context = context; }
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; }