public SysGroupService(IContextBase <SysGroup> repository, IMapper mapper, IContextBase <CatDepartment> departmentRepo, ICatDepartmentService deptService, IContextBase <SysUserLevel> userLevelRepo, ICurrentUser currUser, IContextBase <SysUser> userRepo) : base(repository, mapper) { SetChildren <SysUserLevel>("Id", "GroupId"); departmentRepository = departmentRepo; departmentService = deptService; currentUser = currUser; sysLevelRepository = userLevelRepo; userRepository = userRepo; }
/// <summary> /// Contructor /// </summary> /// <param name="localizer"></param> /// <param name="service"></param> public CatDepartmentController(IStringLocalizer <LanguageSub> localizer, ICatDepartmentService service) { stringLocalizer = localizer; catDepartmentService = service; }