public OrganizationMemberRolesController(
     IOrganizationMemberRolesManagementService rolesManagementService,
     IUserRetrievalService userRetrievalService,
     IOrganizationRetrievalService organizationRetrievalService)
 {
     _rolesManagementService = rolesManagementService ?? throw
                                   new ArgumentNullException(nameof(rolesManagementService));
     _userRetrievalService = userRetrievalService ?? throw
                                 new ArgumentNullException(nameof(userRetrievalService));
     _organizationRetrievalService = organizationRetrievalService ?? throw
                                         new ArgumentNullException(nameof(organizationRetrievalService));
 }
Exemplo n.º 2
0
 public EditModel(
     UserManager <ApplicationUser> userManager,
     ICurrentOrganizationAccessorService currentOrganizationAccessorService,
     IOrganizationMemberManagementService organizationMemberManagementService,
     IOrganizationMemberRolesManagementService memberRolesManagementService,
     ILogger <EditModel> logger)
 {
     _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager));
     _currentOrganizationAccessorService  = currentOrganizationAccessorService ?? throw new ArgumentNullException(nameof(currentOrganizationAccessorService));
     _organizationMemberManagementService = organizationMemberManagementService ?? throw new ArgumentNullException(nameof(organizationMemberManagementService));
     _memberRolesManagementService        = memberRolesManagementService ?? throw new ArgumentNullException(nameof(memberRolesManagementService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }