public RolePermissionController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, iPow.Infrastructure.Crosscutting.Authorize.IRoleService role, iPow.Infrastructure.Crosscutting.Authorize.IMvcActionService mvcAction, iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerClassService mvcControllerClass, iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerService mvcController, iPow.Infrastructure.Crosscutting.Authorize.IMvcRolePermissionService rolePermission) { if (role == null) { throw new ArgumentNullException("roleService is null"); } if (mvcAction == null) { throw new ArgumentNullException("actionService is null"); } if (mvcControllerClass == null) { throw new ArgumentNullException("actionService is null"); } if (mvcController == null) { throw new ArgumentNullException("mvcControllerService is null"); } if (rolePermission == null) { throw new ArgumentNullException("rolePermissionService is null"); } roleService = role; mvcActionService = mvcAction; mvcControllerClassService = mvcControllerClass; mvcControllerService = mvcController; mvcRolePermissionService = rolePermission; }
public RoleController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, iPow.Infrastructure.Crosscutting.Authorize.IRoleService role) : base(work) { if (role == null) { throw new ArgumentNullException("roleService is null"); } roleService = role; }