NavigationExtensionsNavigateToCompanyPage Method

Navigates the user to the Admin page of a company

Definition

Namespace: MobileTrack.Web.Components.Extensions
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static void NavigateToCompanyPage(
	this NavigationManager navigationManager,
	UserSessionData currentUser,
	CompanyDto company
)

Parameters

navigationManager  NavigationManager
Navigation manager
currentUser  UserSessionData
Currently logged-in user
company  CompanyDto
Company to navigate to

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type NavigationManager. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

UnauthorizedAccessExceptionInvoked if currentUser is not a MobileTrack employee!

See Also