예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserController"/> class
 /// </summary>
 /// <param name="userService">The user service which is used to communicate with the logic layer.</param>
 /// <param name="mapper">The mapper which is used to convert the resources to the models to the resource results.</param>
 /// <param name="roleService">The role service which is used to communicate with the logic layer.</param>
 /// <param name="institutionService">The institution service which is used to communicate with the logic layer.</param>
 /// <param name="authorizationHelper">The authorization helper which is used to communicate with the authorization helper class.</param>
 /// <param name="userUserService">The user user service is responsible for users that are following users.</param>
 public UserController(IUserService userService,
                       IMapper mapper,
                       IRoleService roleService,
                       IAuthorizationHelper authorizationHelper,
                       IInstitutionService institutionService,
                       IUserUserService userUserService)
 {
     this.userService         = userService;
     this.mapper              = mapper;
     this.roleService         = roleService;
     this.authorizationHelper = authorizationHelper;
     this.institutionService  = institutionService;
     this.userUserService     = userUserService;
 }
예제 #2
0
 public UsersController(IUserUserService userService) => this.userService = userService ?? throw new ArgumentNullException(nameof(userService));