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+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
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