예제 #1
0
 public OrganizationMembersController(
     IOrganizationMemberManagementService orgMemberService,
     IUserRetrievalService userRetrievalService,
     IOrganizationRetrievalService orgRetrievalService)
 {
     _orgMemberService = orgMemberService ?? throw
                             new ArgumentNullException(nameof(orgMemberService));
     _userRetrievalService = userRetrievalService ?? throw
                                 new ArgumentNullException(nameof(userRetrievalService));
     _orgRetrievalService = orgRetrievalService ?? throw
                                new ArgumentNullException(nameof(orgRetrievalService));
 }
예제 #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));
 }