The tenant ID is passed in, but db.TenantIdOrThrow can be used in favor of it.
In InvitationService.AcceptInvitation
The acceptingUser is a nullable parameter, this should be made non-nullable (the two references to this method should never pass in a null user) and the check for null should be removed
Some small nits in the tenancy template code
In
InvitationService.CreateAndSendInvitation
The tenant ID is passed in, but db.TenantIdOrThrow can be used in favor of it.
In
InvitationService.AcceptInvitation
The acceptingUser is a nullable parameter, this should be made non-nullable (the two references to this method should never pass in a null user) and the check for null should be removed