ModelFactoryGenerateEmptyRoleAssignment Method

Generates an empty RoleAssignmentDto, with the intent that the user fills in the blanks before saving.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public static RoleAssignmentDto GenerateEmptyRoleAssignment(
	CompanyDto company,
	IIdLabel scope
)

Parameters

company  CompanyDto
Company to generate the role assignment for.
scope  IIdLabel
The scope of the assignment. can be an EnvironmentDto, AccountDto or DeviceDto. In the case of an EnvironmentDto, all underlying resources are included in the scope.

Return Value

RoleAssignmentDto
Generated role assignment.

Exceptions

NullReferenceExceptionThrown if company or scope is .

See Also