/// <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;
 }
 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;
 }