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.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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