コード例 #1
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="userPermission"></param>
 /// <param name="localizer"></param>
 public SysUserPermissionController(ISysUserPermissionService userPermission,
                                    IStringLocalizer <LanguageSub> localizer,
                                    ICurrentUser currUser)
 {
     userPermissionService = userPermission;
     stringLocalizer       = localizer;
     currentUser           = currUser;
 }
コード例 #2
0
 public SysPermissionSampleService(IContextBase <SysPermissionSample> repository,
                                   IMapper mapper,
                                   IContextBase <SysRole> roleRepo,
                                   ISysPermissionSampleGeneralService perSampleGeneralService,
                                   IContextBase <SysPermissionSampleGeneral> permissionSampleGeneralRepo,
                                   ISysPermissionSampleSpecialService perSampleSpecialService,
                                   IContextBase <SysPermissionSampleSpecial> permissioSampleSpecialRepo,
                                   IStringLocalizer <LanguageSub> localizer,
                                   ISysUserPermissionService userPermissionRepo,
                                   ICurrentUser currUser,
                                   IContextBase <SysUser> userRepo) : base(repository, mapper)
 {
     roleRepository = roleRepo;
     permissionSampleGeneralService   = perSampleGeneralService;
     permissioSampleGeneralRepository = permissionSampleGeneralRepo;
     permissionSampleSpecialService   = perSampleSpecialService;
     permissioSampleSpecialRepository = permissioSampleSpecialRepo;
     stringLocalizer          = localizer;
     currentUser              = currUser;
     userPermissionRepository = userPermissionRepo;
     userRepository           = userRepo;
 }