Example #1
0
 public MvcRolePermissionService(Domain.Repository.IMvcControllerRolePermissionRepository permission,
                                 Domain.Repository.IMvcControllerActionRepository action,
                                 Domain.Repository.IMvcControllerClassRepository controllerClass,
                                 Domain.Repository.IMvcControllerRepository controller,
                                 Domain.Repository.IRolesRepository role)
 {
     if (permission == null)
     {
         throw new ArgumentNullException("permissionService is null");
     }
     if (action == null)
     {
         throw new ArgumentNullException("actionRepository is null");
     }
     if (controllerClass == null)
     {
         throw new ArgumentNullException("controllerClassRepository is null");
     }
     if (controller == null)
     {
         throw new ArgumentNullException("controllerRepository is null");
     }
     if (role == null)
     {
         throw new ArgumentNullException("roleRepository is null");
     }
     permissionRepository      = permission;
     actionRepository          = action;
     controllerClassRepository = controllerClass;
     controllerRepository      = controller;
     roleRepository            = role;
 }
 public MvcRolePermissionService(Domain.Repository.IMvcControllerRolePermissionRepository permission,
     Domain.Repository.IMvcControllerActionRepository action,
     Domain.Repository.IMvcControllerClassRepository controllerClass,
     Domain.Repository.IMvcControllerRepository controller,
     Domain.Repository.IRolesRepository role)
 {
     if (permission == null)
     {
         throw new ArgumentNullException("permissionService is null");
     }
     if (action == null)
     {
         throw new ArgumentNullException("actionRepository is null");
     }
     if (controllerClass == null)
     {
         throw new ArgumentNullException("controllerClassRepository is null");
     }
     if (controller == null)
     {
         throw new ArgumentNullException("controllerRepository is null");
     }
     if (role == null)
     {
         throw new ArgumentNullException("roleRepository is null");
     }
     permissionRepository = permission;
     actionRepository = action;
     controllerClassRepository = controllerClass;
     controllerRepository = controller;
     roleRepository = role;
 }