Exemplo n.º 1
0
 public UserRoleController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                           iPow.Infrastructure.Crosscutting.Authorize.IUserRoleService userRole,
                           iPow.Infrastructure.Crosscutting.Authorize.IUserService user,
                           iPow.Infrastructure.Crosscutting.Authorize.IRoleService role)
     : base(work)
 {
     if (userRole == null)
     {
         throw new ArgumentNullException("userRoleService is null");
     }
     if (user == null)
     {
         throw new ArgumentNullException("userService is null");
     }
     if (role == null)
     {
         throw new ArgumentNullException("roleService is null");
     }
     userRoleService = userRole;
     userService     = user;
     roleService     = role;
 }
Exemplo n.º 2
0
 public UserRoleController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     iPow.Infrastructure.Crosscutting.Authorize.IUserRoleService userRole,
     iPow.Infrastructure.Crosscutting.Authorize.IUserService user,
     iPow.Infrastructure.Crosscutting.Authorize.IRoleService role)
     : base(work)
 {
     if (userRole == null)
     {
         throw new ArgumentNullException("userRoleService is null");
     }
     if (user == null)
     {
         throw new ArgumentNullException("userService is null");
     }
     if (role == null)
     {
         throw new ArgumentNullException("roleService is null");
     }
     userRoleService = userRole;
     userService = user;
     roleService = role;
 }